Fix typing in createmarket

This commit is contained in:
Marshall Polaris 2022-08-15 22:11:48 -07:00
parent b704690203
commit f7c6155a7c

View File

@ -133,7 +133,7 @@ export const createmarket = newEndpoint({}, async (req, auth) => {
if (ante > user.balance)
throw new APIError(400, `Balance must be at least ${ante}.`)
let group = null
let group: Group | null = null
if (groupId) {
const groupDocRef = firestore.collection('groups').doc(groupId)
const groupDoc = await groupDocRef.get()