From dd5c719345433c04f8bccef3c1cd072b5a53c1ba Mon Sep 17 00:00:00 2001 From: Inga Date: Mon, 15 Jan 2024 20:58:03 +0000 Subject: [PATCH] fix: declared return type on getExchangeRate --- src/transaction/transaction.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transaction/transaction.controller.ts b/src/transaction/transaction.controller.ts index 5cdd52a..f0728e8 100644 --- a/src/transaction/transaction.controller.ts +++ b/src/transaction/transaction.controller.ts @@ -1,5 +1,5 @@ import { Controller, Post, UsePipes, Body } from '@nestjs/common'; -import { ExchangeRateInput } from 'src/exchange-rate/exchange-rate.dto'; +import { ExchangeRateInput, ExchangeRateResponse } from 'src/exchange-rate/exchange-rate.dto'; import { ExchangeRateService } from 'src/exchange-rate/exchange-rate.service'; import { TransactionService } from './transaction.service'; import { transactionBodySchema } from './transaction.validation'; @@ -112,7 +112,7 @@ export class TransactionController { } getExchangeRate(exchangeRateInput: ExchangeRateInput) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { try { this.exchangeRateService.convertCurrency(exchangeRateInput).subscribe({ next: resolve,