Skip to content

Commit 0e23255

Browse files
committed
update nextIsSoon to 30 minutes
1 parent e51c5eb commit 0e23255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/utils/cron.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function sendNextTexts() {
5252
const lastSent = new Date(lastMessage?.sentAt ?? 0)
5353
const prev = interval.prev().toDate()
5454
const next = interval.next().toDate()
55-
const nextIsSoon = next.getTime() - Date.now() < 1000 * 60 * 10
55+
const nextIsSoon = next.getTime() - Date.now() < 1000 * 60 * 30
5656
const due = lastSent < prev
5757
const remind =
5858
nextIsSoon && (lastRemindedAt?.getTime() ?? 0) < prev.getTime()

0 commit comments

Comments
 (0)