Skip to content

Commit 442b1f6

Browse files
authored
hotfix: unable to submit bot
1 parent 05d5c12 commit 442b1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/Query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ async function submitBot(
570570
id: string,
571571
data: AddBotSubmit
572572
): Promise<1 | 2 | 3 | 4 | 5 | SubmittedBot> {
573-
const submits = await knex('submitted').select(['id']).where({ state: 0 })
573+
const submits = await knex('submitted').select(['id']).where({ state: 0, owner: id })
574574
if (submits.length > 1) return 1
575575
const botId = data.id
576576
const strikes = await get.botSubmitStrikes(botId)

0 commit comments

Comments
 (0)