@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -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 = _.map(entities, entity => entity.submitValues);
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 = _.map(entities, entity => entity.submitValues);
631
+ data = {
632
+ entities: _.map(entities, entity => entity.submitValues),
633
+ };
630
634
 
631
635
  return this._send(method, url, data)
632
636
  .then(result => {