Don't show unlisted contracts in closing soon

This commit is contained in:
jahooma 2022-01-18 13:17:56 -06:00
parent e6dbcbc4fd
commit 142feaffff

View File

@ -162,6 +162,7 @@ export async function getHotContracts() {
const closingSoonQuery = query( const closingSoonQuery = query(
contractCollection, contractCollection,
where('isResolved', '==', false), where('isResolved', '==', false),
where('visibility', '==', 'public'),
where('closeTime', '>', Date.now()), where('closeTime', '>', Date.now()),
orderBy('closeTime', 'asc'), orderBy('closeTime', 'asc'),
limit(6) limit(6)