fix (backend): correct relation
This commit is contained in:
parent
41b9fbef96
commit
774c8213f2
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ import {
|
|||
JoinColumn,
|
||||
Column,
|
||||
ManyToOne,
|
||||
OneToOne,
|
||||
PrimaryColumn,
|
||||
Index,
|
||||
type Relation,
|
||||
|
@ -31,7 +32,7 @@ export class ScheduledNoteCreation {
|
|||
public scheduledAt: Date;
|
||||
|
||||
//#region Relations
|
||||
@ManyToOne(() => Note, {
|
||||
@OneToOne(() => Note, {
|
||||
onDelete: "CASCADE",
|
||||
})
|
||||
@JoinColumn()
|
||||
|
|
Loading…
Reference in a new issue