diff --git a/functions/src/place-bet.ts b/functions/src/place-bet.ts index d26c07de..8cb88b3a 100644 --- a/functions/src/place-bet.ts +++ b/functions/src/place-bet.ts @@ -54,7 +54,7 @@ export const placeBet = functions.runWith({ minInstances: 1 }).https.onCall( }) transaction.update(userDoc, { balance: newBalance }) - return { status: 'success' } + return { status: 'success', betId: newBetDoc.id } }) } )