@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
|
@@ -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)
|
|
169
|
+
Promise.all(savePromises)
|
|
170
|
+
.then(() => {
|
|
170
171
|
console.log(`[PEDIR-ITEMS-SAVED] ${modelo}: all items saved`);
|
|
171
|
-
|
|
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) => {
|