chore: clearing cache for updates

This commit is contained in:
wonderlandpark 2021-05-06 22:31:28 +09:00
parent 4e979831f3
commit 5f98f594d2
2 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,7 @@ const Bots = RequestHandler()
if(!captcha) return ResponseWrapper(res, { code: 400, message: '캡챠 검증에 실패하였습니다.' })
if(req.body.name !== bot.name) return ResponseWrapper(res, { code: 400, message: '봇 이름을 입력해주세요.' })
remove.bot(bot.id)
get.user.clear(user)
return ResponseWrapper(res, { code: 200, message: '성공적으로 삭제했습니다.' })
})

View File

@ -29,6 +29,7 @@ const BotOwners = RequestHandler()
if(userFetched.indexOf(null) !== -1) return ResponseWrapper(res, { code: 400, message: '올바르지 않은 유저 ID를 포함하고 있습니다.' })
if(userFetched.length > 1 && userFetched[0].id !== (bot.owners as User[])[0].id) return ResponseWrapper(res, { code: 400, errors: ['소유자를 이전할 때는 다른 관리자를 포함할 수 없습니다.'] })
await update.botOwners(bot.id, validated.owners)
get.user.clear(user)
return ResponseWrapper(res, { code: 200 })
})