fix: Don't continue retrying SMS reminders infinitely (#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>
This commit is contained in:
Keith Williamsandcubic-dev-ai[bot] authored and GitHub committed 2025-07-03 21:02:08 +00:00
1 parent 7f891adff2
commit 20434856e9
1 file changed
+3
@@ -37,6 +37,9 @@ export async function handler(req: NextRequest) {
scheduledDate: {
lte: dayjs().add(2, "hour").toISOString(),
},
retryCount: {
lt: 3, // Don't continue retrying if it's already failed 3 times
},
},
select: {
...select,