feat: clearing cache for deleted bot

This commit is contained in:
wonderlandpark 2021-05-05 19:50:19 +09:00
parent a5e577b3e6
commit c317cc24b3
No known key found for this signature in database
GPG Key ID: E3E650B146478C64

View File

@ -254,7 +254,7 @@ async function getBotSpec(id: string, userID: string) {
async function deleteBot(id: string): Promise<boolean> {
const bot = await knex('bots').where({ id }).del()
get.bot.clear(id)
return !!bot
}