From c1d8eda2327cc6e0c1f4109c78ae8e12b4207a5f Mon Sep 17 00:00:00 2001 From: LJ <81748770+elle-j@users.noreply.github.com> Date: Wed, 30 Aug 2023 08:25:27 +0200 Subject: [PATCH] Refactor hardcoded constant to variable. --- examples/example-node-connection-and-error/src/realm-query.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,