Add timestamp

This commit is contained in:
KernelDeimos
2024-04-11 21:41:19 -04:00
parent 2d76025c9c
commit 2f6f7e39bb
@@ -214,6 +214,9 @@ class AuthService extends BaseService {
}
}
meta.created = new Date().toISOString();
meta.created_unix = Math.floor(Date.now() / 1000);
const uuid = this.modules.uuidv4();
await this.db.write(
'INSERT INTO `sessions` ' +