Skip to content

Commit 3a5f533

Browse files
committed
tested code sample + add const
1 parent 74f7498 commit 3a5f533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/functions/mongodb/api/snippets/transactions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
exports = function () {
22
const client = context.services.get("mongodb-atlas");
33

4-
db = client.db("exampleDatabase");
4+
const db = client.db("exampleDatabase");
55

6-
accounts = db.collection("accounts");
6+
const accounts = db.collection("accounts");
77
browniePointsTrades = db.collection("browniePointsTrades");
88

99
// create user accounts with initial balances

0 commit comments

Comments
 (0)