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",