From a333d8334e2aba026a9d0a5e32110122e345e6b0 Mon Sep 17 00:00:00 2001
From: Austin Chen <akrolsmir@gmail.com>
Date: Thu, 6 Jan 2022 10:55:31 -0800
Subject: [PATCH] Return the new bet ID

---
 functions/src/place-bet.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 }
     })
   }
 )