add expiry tolerance if not dryRun to the admin premium unlock api

This commit is contained in:
Jonas Lochmann
2026-06-15 02:00:00 +02:00
parent 235115168f
commit 91cb44d244
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ export const createAdminRouter = ({ database, websocket, eventHandler }: {
throw new BadRequest()
}
const tokenContent = await verifyIdentitifyToken(purchaseToken)
const tokenContent = await verifyIdentitifyToken(purchaseToken, dryRun)
if (tokenContent.purpose !== 'purchase') {
res.json({ ok: false, error: 'token invalid', detail: 'wrong purpose' })