From ac664cb1b3cb2fa58974b1ca22ba1acdc24e8cd1 Mon Sep 17 00:00:00 2001 From: serezhaolshan Date: Fri, 4 Oct 2024 13:48:30 +0300 Subject: [PATCH] fix: getWatcherHistoricalPrices method response --- src/watcher/watcher.network.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watcher/watcher.network.ts b/src/watcher/watcher.network.ts index c47f394..35f3ba1 100644 --- a/src/watcher/watcher.network.ts +++ b/src/watcher/watcher.network.ts @@ -24,7 +24,7 @@ export class WatcherNetwork { async getWatcherHistoricalPrices(req: Request, res: Response): Promise { try { const prices = await this.service.getWatcherHistoryPrices(); - res.json(prices); + res.json({ prices: [prices] }); } catch (error) { this.handleErrorResponse(res, error); }