Keep expired invitation hashes so a request for a new link still sends mail.

Clearing the hash made the expired page report success without sending, and made the invite look accepted.
This commit is contained in:
adilallo committed 2026-11-10 15:43:30 -07:00
1 parent b4d0d085d3
commit a8b23bddc2
6 files changed
+15 -48

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
/**
* Prune expired sessions, unused login/save-progress/email-change tokens
* (and any draft they carry), unused invitation tokens, and old workshop
* inquiries.
* (and any draft they carry), and old workshop inquiries. Invitation token
* hashes are left in place so an expired link can still request a new one.
*
* Usage (from repo root):
* node --env-file=.env --import tsx scripts/prune-sessions.ts # global sweep