@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.
@@ -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 id;
2101
- return __generator(this, function (_a) {
2102
- switch (_a.label) {
2103
- case 0: return [4 /*yield*/, this.progresses.create()];
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
- id = (_a.sent()).id;
2106
- this.data.progressId = id;
2107
+ _a.progressId = (_b.sent()).id;
2108
+ this.data.assetId = null;
2107
2109
  return [4 /*yield*/, this.save()];
2108
2110
  case 2:
2109
- _a.sent();
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
- _a.sent();
2114
+ _b.sent();
2113
2115
  return [2 /*return*/];
2114
2116
  }
2115
2117
  });