create liquidity provision even if no ante bet

This commit is contained in:
mantikoros 2022-03-07 12:02:00 -06:00
parent 87747d8fcb
commit dd9f4ba81c

View File

@ -137,6 +137,7 @@ export const createContract = functions
) )
await betDoc.set(bet) await betDoc.set(bet)
}
const liquidityDoc = firestore const liquidityDoc = firestore
.collection(`contracts/${contract.id}/liquidity`) .collection(`contracts/${contract.id}/liquidity`)
@ -150,7 +151,6 @@ export const createContract = functions
) )
await liquidityDoc.set(lp) await liquidityDoc.set(lp)
}
} else if (outcomeType === 'FREE_RESPONSE') { } else if (outcomeType === 'FREE_RESPONSE') {
const noneAnswerDoc = firestore const noneAnswerDoc = firestore
.collection(`contracts/${contract.id}/answers`) .collection(`contracts/${contract.id}/answers`)