make sure it's the user's job

This commit is contained in:
keyan 2022-03-01 11:08:44 -06:00
parent 50f10550b8
commit cd3125954e
1 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,8 @@ export default {
},
maxBid: {
not: null
}
},
userId: user.id
}
if (user.checkedNotesAt) {
@ -224,8 +225,7 @@ export default {
gt: user.checkedNotesAt
}
}
const job = user.checkedNotesAt && await models.item.findFirst({ where })
const job = await models.item.findFirst({ where })
if (job) {
return true
}