Setup rejecctContribution method.

This commit is contained in:
elweyn 2022-12-13 10:10:42 +01:00
parent 907cd03ab8
commit 30c72bb734

View File

@ -252,4 +252,13 @@ export class ContributionResolver {
return new UnconfirmedContribution(contributionToUpdate, user, creations)
}
@Authorized([RIGHTS.REJECT_CONTRIBUTION])
@Mutation(() => Boolean)
async rejectContribution(
@Arg('id', () => Int) id: number,
@Ctx() context: Context,
): Promise<boolean> {
return true
}
}