chore (backend): wrap relations in TypeORM Relation<...>

This commit is contained in:
naskya 2024-05-07 21:05:25 +09:00
parent 3ceaf99df6
commit 5daeaf1de2
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
1 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import {
ManyToOne,
PrimaryColumn,
Index,
type Relation,
} from "typeorm";
import { Note } from "./note.js";
import { id } from "../id.js";
@ -34,11 +35,12 @@ export class ScheduledNoteCreation {
onDelete: "CASCADE",
})
@JoinColumn()
public note: Note;
public note: Relation<Note>;
@ManyToOne(() => User, {
onDelete: "CASCADE",
})
@JoinColumn()
public user: User;
public user: Relation<User>;
//#endregion
}