Skip to content

Commit

Permalink
Merge pull request #261 from alkem-io/develop
Browse files Browse the repository at this point in the history
Release: Fixes
  • Loading branch information
valentinyanakiev authored Sep 27, 2023
2 parents 88b853f + f6192e7 commit 3fdeddd
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 11 deletions.
4 changes: 2 additions & 2 deletions service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion service/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alkemio-notifications",
"version": "0.14.2",
"version": "0.14.3",
"description": "Alkemio notifications service",
"author": "Alkemio Foundation",
"private": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,19 @@ export class CollaborationPostCreatedNotificationBuilder
},
];

const spaceIDTemplateVar =
!payload.journey?.challenge?.opportunity?.id &&
!payload.journey?.challenge?.id
? payload.journey.spaceID
: '';

const challengeIDTemplateVar = !payload.journey?.challenge?.opportunity?.id
? payload.journey?.challenge?.id
: undefined;

const templateVariables = {
spaceID: payload.journey.spaceID,
challengeID: payload.journey?.challenge?.id ?? '',
spaceID: spaceIDTemplateVar,
challengeID: challengeIDTemplateVar ?? '',
opportunityID: payload.journey?.challenge?.opportunity?.id ?? '',
journeyID:
payload.journey?.challenge?.opportunity?.id ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,19 @@ export class CollaborationWhiteboardCreatedNotificationBuilder
},
];

const spaceIDTemplateVar =
!payload.journey?.challenge?.opportunity?.id &&
!payload.journey?.challenge?.id
? payload.journey.spaceID
: '';

const challengeIDTemplateVar = !payload.journey?.challenge?.opportunity?.id
? payload.journey?.challenge?.id
: undefined;

const templateVariables = {
spaceID: payload.journey.spaceID,
challengeID: payload.journey?.challenge?.id ?? '',
spaceID: spaceIDTemplateVar,
challengeID: challengeIDTemplateVar ?? '',
opportunityID: payload.journey?.challenge?.opportunity?.id ?? '',
journeyID:
payload.journey?.challenge?.opportunity?.id ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,20 @@ export class CommunityApplicationCreatedNotificationBuilder
preferenceType: UserPreferenceType.NotificationApplicationSubmitted,
},
];
const spaceIDTemplateVar =
!payload.journey?.challenge?.opportunity?.id &&
!payload.journey?.challenge?.id
? payload.journey.spaceID
: '';

const challengeIDTemplateVar = !payload.journey?.challenge?.opportunity?.id
? payload.journey?.challenge?.id
: undefined;

const templateVariables = {
applicantID: payload.applicantID,
spaceID: payload.journey.spaceID,
challengeID: payload.journey.challenge?.id ?? '',
spaceID: spaceIDTemplateVar,
challengeID: challengeIDTemplateVar ?? '',
opportunityID: payload.journey.challenge?.opportunity?.id ?? '',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,20 @@ export class CommunityNewMemberNotificationBuilder
},
];

const spaceIDTemplateVar =
!payload.journey?.challenge?.opportunity?.id &&
!payload.journey?.challenge?.id
? payload.journey.spaceID
: '';

const challengeIDTemplateVar = !payload.journey?.challenge?.opportunity?.id
? payload.journey?.challenge?.id
: undefined;

const templateVariables = {
memberID: payload.userID,
spaceID: payload.journey.spaceID,
challengeID: payload.journey.challenge?.id ?? '',
spaceID: spaceIDTemplateVar,
challengeID: challengeIDTemplateVar ?? '',
opportunityID: payload.journey.challenge?.opportunity?.id ?? '',
};

Expand Down

0 comments on commit 3fdeddd

Please sign in to comment.