Fix last 3 days number

This commit is contained in:
Ian Philips 2022-07-19 17:22:23 -06:00
parent b48e910f70
commit 921ac4b2a9

View File

@ -14,8 +14,8 @@ const firestore = admin.firestore()
async function scoreContractsInternal() {
const now = Date.now()
const lastHour = now - 3600000
const last3Days = now - 2592000000
const lastHour = now - 60 * 60 * 1000
const last3Days = now - 1000 * 60 * 60 * 24 * 3
const activeContractsSnap = await firestore
.collection('contracts')
.where('lastUpdatedTime', '>', lastHour)