fix (backend): correct relation

This commit is contained in:
naskya 2024-05-16 17:26:31 +09:00
parent 41b9fbef96
commit 774c8213f2
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -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()