mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
properly use findOne where
This commit is contained in:
parent
c9488c8b81
commit
8628a05a21
@ -557,8 +557,8 @@ export class ContributionResolver {
|
||||
const releaseLock = await TRANSACTIONS_LOCK.acquire()
|
||||
|
||||
const clientTimezoneOffset = getClientTimezoneOffset(context)
|
||||
const contribution = await DbContribution.findOne({ id, confirmedAt: IsNull() })
|
||||
if (!contribution) {P
|
||||
const contribution = await DbContribution.findOne({ where: { id, confirmedAt: IsNull() } })
|
||||
if (!contribution) {
|
||||
logger.error(`Contribution not found to given id (${id}) or already confirmed`)
|
||||
throw new Error('Contribution not found to given id or already confirmed.')
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user