Skip to content

Commit

Permalink
hotfix: unable to submit bot
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoo1104 authored Oct 22, 2024
1 parent 05d5c12 commit 442b1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/Query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 442b1f6

Please sign in to comment.