Last hashrate indexing check needs to be in milliseconds

This commit is contained in:
softsimon 2022-03-24 00:24:17 +04:00
parent f94b97420d
commit f3ed281ac6

View File

@ -186,7 +186,7 @@ class Mining {
} }
// We only run this once a day // We only run this once a day
const latestTimestamp = await HashratesRepository.$getLatestRunTimestamp('last_hashrates_indexing'); const latestTimestamp = await HashratesRepository.$getLatestRunTimestamp('last_hashrates_indexing') * 1000;
const now = new Date().getTime(); const now = new Date().getTime();
if (now - latestTimestamp < 86400000) { if (now - latestTimestamp < 86400000) {
return; return;