node-mongo-demo
node.js and mongodb demo
git clone https://9o.is/git/node-mongo-demo.git
commit b67a0bb184626c0e6942d088c9d1490280090428 parent eaf9e286a8ec7cc51258b8844ec052b04bce787d Author: Jul <jul@9o.is> Date: Tue, 28 Jan 2025 05:09:18 -0500 fix updateOperation bug Diffstat:
| M | backend/src/events/lucky7-bets.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/events/lucky7-bets.js b/backend/src/events/lucky7-bets.js @@ -49,7 +49,7 @@ const handleUpdate = data => { if (bet && user) { const { lucky, win } = data.updateDescription.updatedFields; user.stream.writeJson({ - operationType, + operationType: 'update', bet: { id, lucky,