From aa11fbcf993d5013e05bc383da6783e45d0fdce3 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Tue, 21 Oct 2025 23:51:31 +0700 Subject: [PATCH] update --- src/entity/trx_currency_rates.ts | 4 ---- src/entity/trx_transactions.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/entity/trx_currency_rates.ts b/src/entity/trx_currency_rates.ts index 6d0239f..ff151af 100644 --- a/src/entity/trx_currency_rates.ts +++ b/src/entity/trx_currency_rates.ts @@ -14,10 +14,6 @@ export class TrxCurrencyRate { }) type: TrxCurrencyRateType; - @ManyToOne(() => TrxCurrency, { onDelete: "NO ACTION" }) - @JoinColumn() - base: TrxCurrency; - @ManyToOne(() => TrxCurrency, { onDelete: "NO ACTION" }) @JoinColumn() target: TrxCurrency; diff --git a/src/entity/trx_transactions.ts b/src/entity/trx_transactions.ts index d6e61b5..b545cb1 100644 --- a/src/entity/trx_transactions.ts +++ b/src/entity/trx_transactions.ts @@ -57,7 +57,7 @@ export class TrxTransaction { @ManyToOne(() => TrxCurrencyRate, { onDelete: "NO ACTION" }) @JoinColumn() - target_rate: TrxCurrency; + target_rate: TrxCurrencyRate; @Column({ type: "float8",