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:
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,
|
||||
|
||||
Reference in new issue
Block a user