Skip to content

Commit

Permalink
Update src/services/admin/admin-router.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Aydan Pirani <[email protected]>
  • Loading branch information
sdagg9 and AydanPirani authored Jun 13, 2024
1 parent 7d1c3ac commit 2e77f74
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/services/admin/admin-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ adminRouter.post(
const { eventId, qrCode } = ScanValidator.parse(req.body);
console.log("Event ID:", eventId);

if (!qrCode) {
return res
.status(StatusCodes.BAD_REQUEST)
.json({ error: "QR code is required" });
}
const { userId, expTime } = validateQrHash(qrCode);

if (Date.now() / 1000 > expTime) {
Expand Down

0 comments on commit 2e77f74

Please sign in to comment.