Logging & Styling

This commit is contained in:
Bastian Wagner
2026-02-16 12:11:30 +01:00
parent 2eafa21baf
commit 9ea2229f5a
29 changed files with 169 additions and 90 deletions

View File

@@ -1,4 +1,5 @@
import { Injectable } from '@nestjs/common';
import { User } from 'src/model/entitites';
import { EmailLogRepository } from 'src/model/repositories/log';
@Injectable()
@@ -11,6 +12,8 @@ export class LogService {
log(type: LogType, data: any) {
if (type == LogType.Mail) {
return this.logEmail(data);
} else if (type == LogType.Auth) {
return this.logAuthEvent(data);
}
}
@@ -18,10 +21,15 @@ export class LogService {
const log = this.emailLogRepo.create(data);
const logEntry = await this.emailLogRepo.save(log);
}
private async logAuthEvent(data: User) {
console.error("auth logging not implemented")
}
}
export enum LogType {
Mail
Mail,
Auth
}
export enum EmailEvent {