entity typo

This commit is contained in:
ssmucny 2023-04-13 19:55:50 -04:00
parent c7e607ea5f
commit 10e134a980
1 changed files with 3 additions and 3 deletions

View File

@ -58,15 +58,15 @@ export class Note {
@Column({
...id(),
nullable: true,
comment: 'id of child event',
comment: 'The ID of child event',
})
public noteId: Event['id'] | null;
public eventId: Event['id'] | null;
@OneToOne(type => Event, {
onDelete: 'CASCADE',
})
@JoinColumn()
public note: Event | null;
public event: Event | null;
// TODO: varcharにしたい
@Column('text', {