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:
1 parent
b4d0d085d3
commit
a8b23bddc2
6 files changed
+15
-48
No files matched your search
@@ -44,7 +44,6 @@ beforeEach(() => {
|
||||
sessions: 1,
|
||||
magicLinkTokens: 2,
|
||||
emailChangeTokens: 0,
|
||||
unusedInviteTokens: 3,
|
||||
workshopInquiries: 4,
|
||||
});
|
||||
retryPendingWorkshopInquiryMailMock.mockResolvedValue(1);
|
||||
@@ -79,7 +78,6 @@ describe("POST /api/ops/prune", () => {
|
||||
sessions: 1,
|
||||
magicLinkTokens: 2,
|
||||
emailChangeTokens: 0,
|
||||
unusedInviteTokens: 3,
|
||||
workshopInquiries: 4,
|
||||
});
|
||||
expect(pruneExpiredRecordsMock).toHaveBeenCalledWith(
|
||||
|
||||
Reference in new issue
Block a user