From 14e09c09176701f6bf944bdf13cb675d1f3b93e8 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 12 Feb 2025 15:02:58 +0700 Subject: [PATCH] update --- src/entity/briva_transactions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entity/briva_transactions.ts b/src/entity/briva_transactions.ts index 64b4d5b..411b7c9 100644 --- a/src/entity/briva_transactions.ts +++ b/src/entity/briva_transactions.ts @@ -21,7 +21,7 @@ export class BrivaTransaction { }) reference_number: string; - @ManyToOne(() => Branch, { onDelete: "RESTRICT" }) + @ManyToOne(() => Branch) @JoinColumn() branch: Branch @@ -31,7 +31,7 @@ export class BrivaTransaction { }) teller_code: string; - @ManyToOne(() => BrivaAccount, { onDelete: 'CASCADE' }) + @ManyToOne(() => BrivaAccount) @JoinTable() account: BrivaAccount