Update functions/src/create-contract.ts

This commit is contained in:
TrueMilli 2022-06-03 00:48:45 +02:00 committed by GitHub
parent 4be929fd8e
commit a416a2de6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ export const createContract = newEndpoint(['POST'], async (req, [user, _]) => {
if (max - min <= 0.01) throw new APIError(400, 'Invalid range.')
}
if (outcomeType === 'BINARY') {
;({ initialProb } = validate(binarySchema, req.body)) // leading ; intentional: see abive
;({ initialProb } = validate(binarySchema, req.body)) // leading ; intentional: see above
}
// Uses utc time on server: