Update the admin revision on password change

+ Update type of revision to DateTime
This commit is contained in:
Stephan
2022-01-02 17:26:20 +01:00
parent 4d23eccba6
commit 08419d581b
4 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -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);
}