From 4853eea32a6995166ac33adf9c04c77be6f6db63 Mon Sep 17 00:00:00 2001 From: joseji Date: Tue, 4 Oct 2022 20:33:22 +0200 Subject: [PATCH] fixed wrong non mandatory attributes --- backend/src/event/Event.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/src/event/Event.ts b/backend/src/event/Event.ts index 3fbaf71f7..832e61ec5 100644 --- a/backend/src/event/Event.ts +++ b/backend/src/event/Event.ts @@ -392,16 +392,16 @@ export class Event { setByBasicCtX( userId: number, - xUserId?: number, - xCommunityId?: number, - contributionId?: number, - amount?: decimal, + xUserId: number, + xCommunityId: number, + contributionId: number, + amount: decimal, ): Event { this.setByBasicUser(userId) - if (xUserId) this.xUserId = xUserId - if (xCommunityId) this.xCommunityId = xCommunityId - if (contributionId) this.contributionId = contributionId - if (amount) this.amount = amount + this.xUserId = xUserId + this.xCommunityId = xCommunityId + this.contributionId = contributionId + this.amount = amount return this }