@stemy/backend 2.8.3 → 2.8.4
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/bundles/stemy-backend.umd.js +10 -8
- package/bundles/stemy-backend.umd.js.map +1 -1
- package/bundles/stemy-backend.umd.min.js +1 -1
- package/bundles/stemy-backend.umd.min.js.map +1 -1
- package/common-types.d.ts +1 -0
- package/esm2015/common-types.js +1 -1
- package/esm2015/services/entities/lazy-asset.js +3 -3
- package/fesm2015/stemy-backend.js +2 -2
- package/fesm2015/stemy-backend.js.map +1 -1
- package/package.json +1 -1
|
@@ -2097,19 +2097,21 @@
|
|
|
2097
2097
|
};
|
|
2098
2098
|
LazyAsset.prototype.startWorkingOnAsset = function () {
|
|
2099
2099
|
return __awaiter$p(this, void 0, void 0, function () {
|
|
2100
|
-
var
|
|
2101
|
-
return __generator(this, function (
|
|
2102
|
-
switch (
|
|
2103
|
-
case 0:
|
|
2100
|
+
var _a;
|
|
2101
|
+
return __generator(this, function (_b) {
|
|
2102
|
+
switch (_b.label) {
|
|
2103
|
+
case 0:
|
|
2104
|
+
_a = this.data;
|
|
2105
|
+
return [4 /*yield*/, this.progresses.create()];
|
|
2104
2106
|
case 1:
|
|
2105
|
-
|
|
2106
|
-
this.data.
|
|
2107
|
+
_a.progressId = (_b.sent()).id;
|
|
2108
|
+
this.data.assetId = null;
|
|
2107
2109
|
return [4 /*yield*/, this.save()];
|
|
2108
2110
|
case 2:
|
|
2109
|
-
|
|
2111
|
+
_b.sent();
|
|
2110
2112
|
return [4 /*yield*/, this.jobMan.enqueueWithName(this.data.jobName, Object.assign(Object.assign({}, this.data.jobParams), { lazyId: this.id }))];
|
|
2111
2113
|
case 3:
|
|
2112
|
-
|
|
2114
|
+
_b.sent();
|
|
2113
2115
|
return [2 /*return*/];
|
|
2114
2116
|
}
|
|
2115
2117
|
});
|