refactor: convert /backend to ESM
This commit is contained in:
parent
31d74c05aa
commit
5772e27cda
766 changed files with 3473 additions and 3500 deletions
|
@ -1,5 +1,5 @@
|
|||
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
|
||||
import { CaseNote } from "./CaseNote";
|
||||
import { Column, Entity, OneToMany, PrimaryGeneratedColumn, Relation } from "typeorm";
|
||||
import { CaseNote } from "./CaseNote.js";
|
||||
|
||||
@Entity("cases")
|
||||
export class Case {
|
||||
|
@ -36,5 +36,5 @@ export class Case {
|
|||
@Column({ type: String, nullable: true }) log_message_id: string | null;
|
||||
|
||||
@OneToMany(() => CaseNote, (note) => note.case)
|
||||
notes: CaseNote[];
|
||||
notes: Relation<CaseNote[]>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue