From 8e158e178672904e05e9ea1b31217e153cb8ab06 Mon Sep 17 00:00:00 2001 From: natsoni Date: Mon, 11 Mar 2024 14:28:06 +0100 Subject: [PATCH] Fix lastHistoricalRun variable to be in seconds --- backend/src/tasks/price-updater.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/tasks/price-updater.ts b/backend/src/tasks/price-updater.ts index bfdce5f8c..5cbb68ee7 100644 --- a/backend/src/tasks/price-updater.ts +++ b/backend/src/tasks/price-updater.ts @@ -320,7 +320,7 @@ class PriceUpdater { await this.$insertMissingRecentPrices('hour'); this.historyInserted = true; - this.lastHistoricalRun = new Date().getTime(); + this.lastHistoricalRun = Math.round(new Date().getTime() / 1000); } /**