diff --git a/examples/example-node-connection-and-error/src/realm-query.ts b/examples/example-node-connection-and-error/src/realm-query.ts index abb097571ae..9d8b89bbb8a 100644 --- a/examples/example-node-connection-and-error/src/realm-query.ts +++ b/examples/example-node-connection-and-error/src/realm-query.ts @@ -63,7 +63,8 @@ function addKiosks() { if (realm) { const products = getProducts(); realm.write(() => { - for (let i = 1; i <= 10; i++) { + const NUM_KIOSKS = 10; + for (let i = 1; i <= NUM_KIOSKS; i++) { realm.create(Kiosk.schema.name, { _id: new BSON.ObjectId(), storeId: SYNC_STORE_ID,