Skip to content

Commit

Permalink
fix(notifications): fire survey.session.started without stored session
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashroch committed Aug 29, 2024
1 parent bfdfa46 commit f16f606
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/api/src/jobs/surveys/survey-event-notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ export default class SurveyEventNotification extends NotificationJob<'SurveyEven

private async getEventPayload() {
switch (this.params.type) {
case 'survey.session.started':
return this.getSession();
case 'survey.session.submitted':
return this.getSubmission(this.params.submissionId);
case 'survey.session.started':
case 'survey.session.cancelled':
default:
return undefined;
Expand Down

0 comments on commit f16f606

Please sign in to comment.