Fix typing in createmarket
This commit is contained in:
parent
b704690203
commit
f7c6155a7c
|
@ -133,7 +133,7 @@ export const createmarket = newEndpoint({}, async (req, auth) => {
|
||||||
if (ante > user.balance)
|
if (ante > user.balance)
|
||||||
throw new APIError(400, `Balance must be at least ${ante}.`)
|
throw new APIError(400, `Balance must be at least ${ante}.`)
|
||||||
|
|
||||||
let group = null
|
let group: Group | null = null
|
||||||
if (groupId) {
|
if (groupId) {
|
||||||
const groupDocRef = firestore.collection('groups').doc(groupId)
|
const groupDocRef = firestore.collection('groups').doc(groupId)
|
||||||
const groupDoc = await groupDocRef.get()
|
const groupDoc = await groupDocRef.get()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user