Return the new bet ID

This commit is contained in:
Austin Chen 2022-01-06 10:55:31 -08:00
parent 95472c5faf
commit a333d8334e

View File

@ -54,7 +54,7 @@ export const placeBet = functions.runWith({ minInstances: 1 }).https.onCall(
}) })
transaction.update(userDoc, { balance: newBalance }) transaction.update(userDoc, { balance: newBalance })
return { status: 'success' } return { status: 'success', betId: newBetDoc.id }
}) })
} }
) )