This commit is contained in:
Bastian Wagner
2024-09-11 10:49:08 +02:00
parent 561ce15dd6
commit 6f704a2576

View File

@@ -48,7 +48,6 @@ export class ActivityLogRepository extends Repository<ActivityLog> {
}
async logLogin(): Promise<ActivityLog> {
console.log("LOGIN")
const entity = await this.getTodaysActivityLog();
entity.loginCounter += 1;
return this.save(entity);
@@ -81,6 +80,7 @@ export class ActivityLogRepository extends Repository<ActivityLog> {
if (!x) {
x = this.create({ date: new Date() });
await this.save(x);
}
return x;
}