Skip to content

Commit

Permalink
fix: getWatcherHistoricalPrices method response |3
Browse files Browse the repository at this point in the history
  • Loading branch information
serezhaolshan committed Oct 4, 2024
1 parent 219f8cb commit 554d923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watcher/watcher.network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class WatcherNetwork {
async getWatcherHistoricalPrices(req: Request, res: Response): Promise<void> {
try {
const prices = await this.service.getWatcherHistoryPrices();
res.json({ prices: JSON.parse([prices]) });
res.json({ prices: [JSON.parse(prices)] });
} catch (error) {
this.handleErrorResponse(res, error);
}
Expand Down

0 comments on commit 554d923

Please sign in to comment.