Fix last 3 days number
This commit is contained in:
parent
b48e910f70
commit
921ac4b2a9
|
@ -14,8 +14,8 @@ const firestore = admin.firestore()
|
||||||
|
|
||||||
async function scoreContractsInternal() {
|
async function scoreContractsInternal() {
|
||||||
const now = Date.now()
|
const now = Date.now()
|
||||||
const lastHour = now - 3600000
|
const lastHour = now - 60 * 60 * 1000
|
||||||
const last3Days = now - 2592000000
|
const last3Days = now - 1000 * 60 * 60 * 24 * 3
|
||||||
const activeContractsSnap = await firestore
|
const activeContractsSnap = await firestore
|
||||||
.collection('contracts')
|
.collection('contracts')
|
||||||
.where('lastUpdatedTime', '>', lastHour)
|
.where('lastUpdatedTime', '>', lastHour)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user