Skip to content

Commit 7a3d6cb

Browse files
committed
don't infect inactive cured folks
1 parent 167f048 commit 7a3d6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker/halloween.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function halloween ({ models }) {
1111
SELECT "userId" FROM "Item"
1212
WHERE created_at > ${datePivot(new Date(), { hours: -HALLOWEEN_INACTIVITY_TIMEOUT_HOURS })}
1313
AND ("invoiceActionState" IS NULL OR "invoiceActionState" = 'PAID')
14-
)
14+
) AND NOT "cured"
1515
),
1616
new_infections AS (
1717
INSERT INTO "Infection" ("infecteeId")

0 commit comments

Comments
 (0)