Formatting
This commit is contained in:
parent
3963808152
commit
4be37a4f67
1 changed files with 4 additions and 4 deletions
|
|
@ -505,13 +505,13 @@
|
|||
|
||||
(let [collection "widgets"
|
||||
mapper "function() {
|
||||
emit(this.state, this.price * this.quantity)
|
||||
emit(this.state, this.price * this.quantity)
|
||||
}"
|
||||
reducer "function(key, values) {
|
||||
var result = 0;
|
||||
values.forEach(function(v) { result += v });
|
||||
var result = 0;
|
||||
values.forEach(function(v) { result += v });
|
||||
|
||||
return result;
|
||||
return result;
|
||||
}"
|
||||
batch [{ :state "CA" :quantity 1 :price 199.00 }
|
||||
{ :state "NY" :quantity 2 :price 199.00 }
|
||||
|
|
|
|||
Loading…
Reference in a new issue