mirror of
https://github.com/detleph/server.git
synced 2026-09-04 16:46:04 +02:00
Update the admin revision on password change
+ Update type of revision to DateTime
This commit is contained in:
@@ -62,7 +62,7 @@ export const requireAuthentication = async (req: Request, res: Response, next: N
|
||||
const user = await prisma.admin.findUnique({ where: { pid }, select: { revision: true } });
|
||||
|
||||
if (user) {
|
||||
db_revision = user.revision;
|
||||
db_revision = user.revision.toISOString();
|
||||
|
||||
await authClient.set(pid, db_revision);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user