mirror of
https://github.com/koreanbots/core.git
synced 2025-12-17 06:40:24 +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> {
|
async function deleteBot(id: string): Promise<boolean> {
|
||||||
const bot = await knex('bots').where({ id }).del()
|
const bot = await knex('bots').where({ id }).del()
|
||||||
|
get.bot.clear(id)
|
||||||
return !!bot
|
return !!bot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user