@onehat/data 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Repository/Ajax.js +6 -2
package/package.json
CHANGED
package/src/Repository/Ajax.js
CHANGED
|
@@ -548,7 +548,9 @@ class AjaxRepository extends Repository {
|
|
|
548
548
|
|
|
549
549
|
const method = this.methods.add,
|
|
550
550
|
url = this.api.batchAdd,
|
|
551
|
-
data =
|
|
551
|
+
data = {
|
|
552
|
+
entities: _.map(entities, entity => entity.submitValues),
|
|
553
|
+
};
|
|
552
554
|
|
|
553
555
|
return this._send(method, url, data)
|
|
554
556
|
.then(result => {
|
|
@@ -626,7 +628,9 @@ class AjaxRepository extends Repository {
|
|
|
626
628
|
|
|
627
629
|
const method = this.methods.edit,
|
|
628
630
|
url = this.api.batchEdit,
|
|
629
|
-
data =
|
|
631
|
+
data = {
|
|
632
|
+
entities: _.map(entities, entity => entity.submitValues),
|
|
633
|
+
};
|
|
630
634
|
|
|
631
635
|
return this._send(method, url, data)
|
|
632
636
|
.then(result => {
|