Ignore cancel resolutions for proven correct

This commit is contained in:
Ian Philips 2022-10-12 08:05:55 -06:00
parent ff6278b147
commit decb3213f6

View File

@ -39,7 +39,8 @@ export const onUpdateContract = functions.firestore
async function handleResolvedContract(contract: Contract) { async function handleResolvedContract(contract: Contract) {
if ( if (
(contract.uniqueBettorCount ?? 0) < (contract.uniqueBettorCount ?? 0) <
MINIMUM_UNIQUE_BETTORS_FOR_PROVEN_CORRECT_BADGE MINIMUM_UNIQUE_BETTORS_FOR_PROVEN_CORRECT_BADGE ||
contract.resolution === 'CANCEL'
) )
return return