mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
feat: clearing cache for deleted bot
This commit is contained in:
parent
a5e577b3e6
commit
c317cc24b3
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user