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,
|
JoinColumn,
|
||||||
Column,
|
Column,
|
||||||
ManyToOne,
|
ManyToOne,
|
||||||
|
OneToOne,
|
||||||
PrimaryColumn,
|
PrimaryColumn,
|
||||||
Index,
|
Index,
|
||||||
type Relation,
|
type Relation,
|
||||||
|
@ -31,7 +32,7 @@ export class ScheduledNoteCreation {
|
||||||
public scheduledAt: Date;
|
public scheduledAt: Date;
|
||||||
|
|
||||||
//#region Relations
|
//#region Relations
|
||||||
@ManyToOne(() => Note, {
|
@OneToOne(() => Note, {
|
||||||
onDelete: "CASCADE",
|
onDelete: "CASCADE",
|
||||||
})
|
})
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
|
|
Loading…
Reference in a new issue