From 442b1f6ecdd9e44c6615f1ea1834b265e845a89e Mon Sep 17 00:00:00 2001 From: Eunwoo Choi Date: Tue, 22 Oct 2024 12:41:13 +0900 Subject: [PATCH] hotfix: unable to submit bot --- utils/Query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/Query.ts b/utils/Query.ts index a23c388..a527099 100644 --- a/utils/Query.ts +++ b/utils/Query.ts @@ -570,7 +570,7 @@ async function submitBot( id: string, data: AddBotSubmit ): Promise<1 | 2 | 3 | 4 | 5 | SubmittedBot> { - const submits = await knex('submitted').select(['id']).where({ state: 0 }) + const submits = await knex('submitted').select(['id']).where({ state: 0, owner: id }) if (submits.length > 1) return 1 const botId = data.id const strikes = await get.botSubmitStrikes(botId)