diff --git a/apps/api/src/app/endpoints/market-data/market-data.controller.ts b/apps/api/src/app/endpoints/market-data/market-data.controller.ts index 5b877a2d6b..89c90fef8d 100644 --- a/apps/api/src/app/endpoints/market-data/market-data.controller.ts +++ b/apps/api/src/app/endpoints/market-data/market-data.controller.ts @@ -111,9 +111,10 @@ export class MarketDataController { }) ); - // Market data used to be stored in the time zone of the instance. Delete - // the items of the same dates that are not at midnight (UTC), so that they - // do not take precedence over the updated ones. + // Market data used to be stored at the given date in the time zone of the + // instance. Delete the items at exactly these times, unless they are at + // midnight (UTC), so that they do not take precedence over the items at + // midnight (UTC). Any other items are kept. const datesToDelete = data.marketData .map(({ date }) => { return parseISO(date);