mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-20 20:01:31 +00:00
save moderator & user_id for EVENT_ADMIN_CONTRIBUTION_DENY
This commit is contained in:
parent
2a1cb037c7
commit
9101c3f74d
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user