mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
chore: fix some code style
This commit is contained in:
parent
8430a40253
commit
73d92a6d5a
@ -6,7 +6,7 @@ import ResponseWrapper from '@utils/ResponseWrapper'
|
||||
import { checkToken } from '@utils/Csrf'
|
||||
import { AddBotSubmit, AddBotSubmitSchema } from '@utils/Yup'
|
||||
|
||||
const BotInfo = nc<ApiRequest, NextApiResponse>()
|
||||
const Bots = nc<ApiRequest, NextApiResponse>()
|
||||
.get(async(req, res) => {
|
||||
const bot = await get.bot.load(req.query.id)
|
||||
if(!bot) return ResponseWrapper(res, { code: 404, message: '존재하지 않는 봇입니다.' })
|
||||
@ -38,10 +38,10 @@ const BotInfo = nc<ApiRequest, NextApiResponse>()
|
||||
})
|
||||
|
||||
interface ApiRequest extends NextApiRequest {
|
||||
body: AddBotSubmit
|
||||
body: AddBotSubmit | null
|
||||
query: {
|
||||
id: string
|
||||
}
|
||||
}
|
||||
|
||||
export default BotInfo
|
||||
export default Bots
|
||||
Loading…
x
Reference in New Issue
Block a user