From c317cc24b3d4a987c3c0949a6f5217239d19a3cc Mon Sep 17 00:00:00 2001 From: wonderlandpark Date: Wed, 5 May 2021 19:50:19 +0900 Subject: [PATCH] feat: clearing cache for deleted bot --- utils/Query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/Query.ts b/utils/Query.ts index 5df1259..be930f1 100644 --- a/utils/Query.ts +++ b/utils/Query.ts @@ -254,7 +254,7 @@ async function getBotSpec(id: string, userID: string) { async function deleteBot(id: string): Promise { const bot = await knex('bots').where({ id }).del() - + get.bot.clear(id) return !!bot }