We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05d5c12 commit 442b1f6Copy full SHA for 442b1f6
utils/Query.ts
@@ -570,7 +570,7 @@ async function submitBot(
570
id: string,
571
data: AddBotSubmit
572
): Promise<1 | 2 | 3 | 4 | 5 | SubmittedBot> {
573
- const submits = await knex('submitted').select(['id']).where({ state: 0 })
+ const submits = await knex('submitted').select(['id']).where({ state: 0, owner: id })
574
if (submits.length > 1) return 1
575
const botId = data.id
576
const strikes = await get.botSubmitStrikes(botId)
0 commit comments