save moderator & user_id for EVENT_ADMIN_CONTRIBUTION_DENY

This commit is contained in:
Ulf Gebhardt 2023-02-14 15:39:41 +01:00
parent 2a1cb037c7
commit 9101c3f74d
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 3 additions and 1 deletions

View File

@ -131,13 +131,14 @@ export const EVENT_CONTRIBUTION_CONFIRM = async (
export const EVENT_ADMIN_CONTRIBUTION_DENY = async (
userId: number,
xUserId: number,
contributionId: number,
amount: Decimal,
): Promise<DbEvent> =>
EVENT(
EventProtocolType.ADMIN_CONTRIBUTION_DENY,
userId,
null,
xUserId,
null,
null,
contributionId,

View File

@ -693,6 +693,7 @@ export class ContributionResolver {
const res = await contributionToUpdate.save()
await EVENT_ADMIN_CONTRIBUTION_DENY(
contributionToUpdate.userId,
moderator.id,
contributionToUpdate.id,
contributionToUpdate.amount,