Notifications

This commit is contained in:
Bastian Wagner
2025-01-20 15:15:41 +01:00
parent adca81444e
commit 2674ec0d24
25 changed files with 126 additions and 35 deletions

View File

@@ -1,4 +1,5 @@
import {
AfterLoad,
Column,
CreateDateColumn,
Entity,
@@ -25,9 +26,16 @@ export class EmailLog {
@Column({ name: 'type', type: 'text',})
type: EmailEvent;
eventName: string;
@ManyToOne(() => KeySystem, { nullable: true })
system: KeySystem;
@Column({type: 'boolean'})
success: boolean;
@AfterLoad()
setType() {
this.eventName = EmailEvent[this.type]
}
}