Notifications
This commit is contained in:
@@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user