mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
hotfix: unable to submit bot
This commit is contained in:
parent
05d5c12080
commit
442b1f6ecd
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user