@keltoi/hydra 2.3.7 → 2.3.9
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/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -249,8 +249,8 @@ class Status extends Entity{
|
|
|
249
249
|
)
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
constructor({ id=1, description=''}){
|
|
253
|
-
super({ id }, { status:description });
|
|
252
|
+
constructor({ id=1, description='', data={}}){
|
|
253
|
+
super({ id }, { status:description, ...data });
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
get description(){ return this.data.status }
|
|
@@ -374,11 +374,11 @@ class Migration{
|
|
|
374
374
|
|
|
375
375
|
if (iteration >= listSize) return
|
|
376
376
|
|
|
377
|
-
|
|
377
|
+
for (let index = iteration; index < listSize; index++) await migrations[index]();
|
|
378
378
|
|
|
379
379
|
await this.#update({ iteration:listSize,name });
|
|
380
380
|
} catch(err){
|
|
381
|
-
|
|
381
|
+
|
|
382
382
|
console.error(err);
|
|
383
383
|
}
|
|
384
384
|
}
|