Treat a bounty market like FR for now

This commit is contained in:
Austin Chen 2022-08-14 18:24:23 -07:00
parent eec4e87da0
commit 2359b5b337

View File

@ -234,7 +234,7 @@ export const createmarket = newEndpoint({}, async (req, auth) => {
) )
) )
await contractRef.update({ answers: answerObjects }) await contractRef.update({ answers: answerObjects })
} else if (outcomeType === 'FREE_RESPONSE') { } else if (outcomeType === 'FREE_RESPONSE' || outcomeType === 'BOUNTY') {
const noneAnswerDoc = firestore const noneAnswerDoc = firestore
.collection(`contracts/${contract.id}/answers`) .collection(`contracts/${contract.id}/answers`)
.doc('0') .doc('0')