set cache ttl and default ttl

This commit is contained in:
miloschwartz
2026-03-20 17:52:07 -07:00
parent f643abf19a
commit 6c2c620c99
5 changed files with 35 additions and 14 deletions

View File

@@ -201,7 +201,7 @@ export async function inviteUser(
);
}
await cache.set(email, attempts + 1);
await cache.set("regenerateInvite:" + email, attempts + 1, 3600);
const inviteId = existingInvite[0].inviteId; // Retrieve the original inviteId
const token = generateRandomString(