@stemy/backend 2.8.4 → 2.8.5
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 -10
- 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/esm2015/services/assets.js +2 -2
- package/esm2015/services/entities/lazy-asset.js +8 -8
- package/esm2015/services/lazy-assets.js +2 -2
- package/esm2015/services/progresses.js +2 -2
- package/fesm2015/stemy-backend.js +10 -10
- package/fesm2015/stemy-backend.js.map +1 -1
- package/package.json +1 -1
|
@@ -1889,7 +1889,7 @@
|
|
|
1889
1889
|
Assets.prototype.read = function (id) {
|
|
1890
1890
|
return __awaiter$q(this, void 0, void 0, function () {
|
|
1891
1891
|
return __generator(this, function (_b) {
|
|
1892
|
-
return [2 /*return*/, this.find({ _id: new bson.ObjectId(id) })];
|
|
1892
|
+
return [2 /*return*/, !id ? null : this.find({ _id: new bson.ObjectId(id) })];
|
|
1893
1893
|
});
|
|
1894
1894
|
});
|
|
1895
1895
|
};
|
|
@@ -2046,13 +2046,13 @@
|
|
|
2046
2046
|
this.load().then(function () {
|
|
2047
2047
|
if (_this.deleted)
|
|
2048
2048
|
return;
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2049
|
+
_this.progresses.get(_this.progressId).then(function (p) {
|
|
2050
|
+
p === null || p === void 0 ? void 0 : p.cancel();
|
|
2051
|
+
});
|
|
2052
|
+
_this.startWorkingOnAsset().then(function () {
|
|
2053
|
+
console.log("Started working on lazy asset: " + _this.id);
|
|
2054
|
+
}).catch(function (reason) {
|
|
2055
|
+
console.log("Can't start working on lazy asset: " + _this.id + "\nReason: " + reason);
|
|
2056
2056
|
});
|
|
2057
2057
|
});
|
|
2058
2058
|
};
|
|
@@ -2875,7 +2875,7 @@
|
|
|
2875
2875
|
Progresses.prototype.get = function (id) {
|
|
2876
2876
|
return __awaiter$m(this, void 0, void 0, function () {
|
|
2877
2877
|
return __generator(this, function (_a) {
|
|
2878
|
-
return [2 /*return*/, this.find({ _id: new bson.ObjectId(id) })];
|
|
2878
|
+
return [2 /*return*/, !id ? null : this.find({ _id: new bson.ObjectId(id) })];
|
|
2879
2879
|
});
|
|
2880
2880
|
});
|
|
2881
2881
|
};
|
|
@@ -3008,7 +3008,7 @@
|
|
|
3008
3008
|
LazyAssets.prototype.read = function (id) {
|
|
3009
3009
|
return __awaiter$l(this, void 0, void 0, function () {
|
|
3010
3010
|
return __generator(this, function (_a) {
|
|
3011
|
-
return [2 /*return*/, this.find({ _id: new bson.ObjectId(id) })];
|
|
3011
|
+
return [2 /*return*/, !id ? null : this.find({ _id: new bson.ObjectId(id) })];
|
|
3012
3012
|
});
|
|
3013
3013
|
});
|
|
3014
3014
|
};
|