@reldens/storage 0.10.0-beta.39 → 0.10.0-beta.40

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.
@@ -56,6 +56,7 @@ class MikroOrmDriver extends BaseDriver
56
56
  {
57
57
  let newInstance = this.rawModel.entity.createByProps(params);
58
58
  await this.repository.persist(newInstance).flush();
59
+ await this.orm.em.flush();
59
60
  return newInstance;
60
61
  }
61
62
 
@@ -74,7 +75,8 @@ class MikroOrmDriver extends BaseDriver
74
75
  }
75
76
  for(let entity of entities){
76
77
  Object.assign(entity, updatePatch);
77
- this.repository.persist(entity).flush();
78
+ await this.repository.persist(entity).flush();
79
+ await this.orm.em.flush();
78
80
  }
79
81
  return entities;
80
82
  }
@@ -88,7 +90,8 @@ class MikroOrmDriver extends BaseDriver
88
90
  }
89
91
  for(let entity of entities){
90
92
  Object.assign(entity, updatePatch);
91
- this.repository.persist(entity).flush();
93
+ await this.repository.persist(entity).flush();
94
+ await this.orm.em.flush();
92
95
  }
93
96
  return entities;
94
97
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/storage",
3
3
  "scope": "@reldens",
4
- "version": "0.10.0-beta.39",
4
+ "version": "0.10.0-beta.40",
5
5
  "description": "Reldens - Storage",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",