Skip to content

Commit 2043485

Browse files
fix: Don't continue retrying SMS reminders infinitely (calcom#22251)
* fix: Don't continue retrying SMS reminders infinitely * Update packages/features/ee/workflows/api/scheduleSMSReminders.ts Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent 7f891ad commit 2043485

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/features/ee/workflows/api/scheduleSMSReminders.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export async function handler(req: NextRequest) {
3737
scheduledDate: {
3838
lte: dayjs().add(2, "hour").toISOString(),
3939
},
40+
retryCount: {
41+
lt: 3, // Don't continue retrying if it's already failed 3 times
42+
},
4043
},
4144
select: {
4245
...select,

0 commit comments

Comments
 (0)