From b112e7af3223dabebd01c9a640c18c9fc240b690 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Wed, 12 Feb 2025 15:04:05 +0700 Subject: [PATCH] update --- src/entity/briva_accounts.ts | 2 +- src/entity/briva_transactions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entity/briva_accounts.ts b/src/entity/briva_accounts.ts index 91281c6..cd97a6e 100644 --- a/src/entity/briva_accounts.ts +++ b/src/entity/briva_accounts.ts @@ -33,7 +33,7 @@ export class BrivaAccount { }) account_holder: string; - @ManyToOne(() => BrivaCompany, { nullable: true }) + @ManyToOne(() => BrivaCompany, { onDelete: 'NO ACTION', nullable: true }) @JoinTable() company: BrivaCompany diff --git a/src/entity/briva_transactions.ts b/src/entity/briva_transactions.ts index 411b7c9..d67bb17 100644 --- a/src/entity/briva_transactions.ts +++ b/src/entity/briva_transactions.ts @@ -31,7 +31,7 @@ export class BrivaTransaction { }) teller_code: string; - @ManyToOne(() => BrivaAccount) + @ManyToOne(() => BrivaAccount, { onDelete: 'NO ACTION' }) @JoinTable() account: BrivaAccount