ass user relation to allow event

This commit is contained in:
Moriz Wahl 2023-03-21 14:47:33 +01:00
parent 8f56be790b
commit c140e04310

View File

@ -322,7 +322,8 @@ export class ContributionResolver {
const moderator = getUser(context)
const contributionToUpdate = await DbContribution.findOne({
where: { id, confirmedAt: IsNull(), deniedAt: IsNull(), relations: ['user'] },
where: { id, confirmedAt: IsNull(), deniedAt: IsNull() },
relations: ['user'],
})
if (!contributionToUpdate) {