First order must be closeTime

This commit is contained in:
Ian Philips 2022-08-17 13:02:22 -06:00
parent b9ab4b4f14
commit 5c0c013d70

View File

@ -24,6 +24,7 @@ async function getTrendingContracts() {
.where('isResolved', '==', false)
.where('closeTime', '>', Date.now() + DAY_MS)
.where('visibility', '==', 'public')
.orderBy('closeTime', 'asc')
.orderBy('popularityScore', 'desc')
.limit(50)
)