@obisey/nest 0.1.28 → 0.1.29

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": "@obisey/nest",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "NestJS utilities and base classes by Obisey",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -166,12 +166,15 @@ function BaseService(modelo) {
166
166
  const plainData = item.get({ plain: true });
167
167
  return this.redis.hSet(pkey(id), 'item', JSON.stringify(plainData));
168
168
  });
169
- Promise.all(savePromises).then(() => {
169
+ Promise.all(savePromises)
170
+ .then(() => {
170
171
  console.log(`[PEDIR-ITEMS-SAVED] ${modelo}: all items saved`);
171
- }).catch(err => {
172
+ resolve(result);
173
+ })
174
+ .catch(err => {
172
175
  console.log(`[PEDIR-SAVE-ERROR] ${modelo}:`, err);
176
+ resolve(result);
173
177
  });
174
- resolve(result);
175
178
  });
176
179
  }), //Pedir
177
180
  () => new Promise(async (resolve) => {