Ignore cancel resolutions for proven correct
This commit is contained in:
parent
ff6278b147
commit
decb3213f6
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user