Skip to content

Commit 554d923

Browse files
committed
fix: getWatcherHistoricalPrices method response |3
1 parent 219f8cb commit 554d923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/watcher/watcher.network.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class WatcherNetwork {
2424
async getWatcherHistoricalPrices(req: Request, res: Response): Promise<void> {
2525
try {
2626
const prices = await this.service.getWatcherHistoryPrices();
27-
res.json({ prices: JSON.parse([prices]) });
27+
res.json({ prices: [JSON.parse(prices)] });
2828
} catch (error) {
2929
this.handleErrorResponse(res, error);
3030
}

0 commit comments

Comments
 (0)