Skip to content

Commit 47bed8c

Browse files
committed
Beautify JavaScript example
1 parent 5fb6afc commit 47bed8c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/eventing/pages/eventing-language-constructs.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,13 +398,15 @@ function OnUpdate(doc, meta) {
398398
var count = 0;
399399
const limit = 4;
400400
401-
let query = couchbase.analyticsQuery('SELECT * FROM default LIMIT $limit;', {"limit": limit});
401+
let query = couchbase.analyticsQuery('SELECT * FROM default LIMIT $limit;', {
402+
"limit": limit
403+
});
402404
for (let row of query) {
403-
++count;
405+
++count;
404406
}
405407
406408
if (count === limit) {
407-
dst_bucket[meta.id] = 'yes';
409+
dst_bucket[meta.id] = 'yes';
408410
}
409411
}
410412
----

0 commit comments

Comments
 (0)