Skip to content

Commit

Permalink
Ensure not to trigger questionnaire message again within the first 24…
Browse files Browse the repository at this point in the history
… hours
  • Loading branch information
pauljohanneskraft committed Dec 3, 2024
1 parent 2165336 commit 6cd05a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/src/services/trigger/triggerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ export class TriggerService {
)
if (
enrollmentDuration % (durationOfOneDayInMilliseconds * 14) <
durationOfOneDayInMilliseconds
durationOfOneDayInMilliseconds &&
enrollmentDuration > durationOfOneDayInMilliseconds
) {
await options.messageService.addMessage(
user.id,
Expand Down

0 comments on commit 6cd05a7

Please sign in to comment.