@resolveio/server-lib 9.6.19 → 9.6.21
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/managers/mongo.manager.js +7 -7
- package/managers/mongo.manager.js.map +1 -1
- package/managers/subscription.manager.js +3 -3
- package/managers/subscription.manager.js.map +1 -1
- package/methods/pdf.js +3 -3
- package/methods/pdf.js.map +1 -1
- package/package.json +1 -1
- package/server-app.js +0 -4
- package/server-app.js.map +1 -1
|
@@ -710,7 +710,7 @@ var Collection = /** @class */ (function () {
|
|
|
710
710
|
isValid = validation.validate(replacement);
|
|
711
711
|
if (!isValid) {
|
|
712
712
|
console.log(new Date(), this.collectionName, 'Schema Errors - findOneAndReplace', validation.validationErrors());
|
|
713
|
-
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal('insertErrorLog', 'Schema Failed on findOneAndReplace - ' + this.collectionName, [validation.validationErrors(), replacement]);
|
|
713
|
+
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal.call(index_1.ResolveIOServer.getMainServer().getMethodManager(), 'insertErrorLog', 'Schema Failed on findOneAndReplace - ' + this.collectionName, [validation.validationErrors(), replacement]);
|
|
714
714
|
reject(validation.validationErrors());
|
|
715
715
|
return [2 /*return*/];
|
|
716
716
|
}
|
|
@@ -778,7 +778,7 @@ var Collection = /** @class */ (function () {
|
|
|
778
778
|
isValid = validation.validate(update, { modifier: true });
|
|
779
779
|
if (!isValid) {
|
|
780
780
|
console.log(new Date(), this.collectionName, 'Schema Errors - findOneAndUpdate', validation.validationErrors());
|
|
781
|
-
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal('insertErrorLog', 'Schema Failed on findOneAndUpdate - ' + this.collectionName, [validation.validationErrors(), update]);
|
|
781
|
+
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal.call(index_1.ResolveIOServer.getMainServer().getMethodManager(), 'insertErrorLog', 'Schema Failed on findOneAndUpdate - ' + this.collectionName, [validation.validationErrors(), update]);
|
|
782
782
|
reject(validation.validationErrors());
|
|
783
783
|
return [2 /*return*/];
|
|
784
784
|
}
|
|
@@ -876,7 +876,7 @@ var Collection = /** @class */ (function () {
|
|
|
876
876
|
var isValid = validation.validate(doc);
|
|
877
877
|
if (!isValid) {
|
|
878
878
|
console.log(new Date(), _this.collectionName, 'Schema Errors - insertMany', validation.validationErrors());
|
|
879
|
-
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal('insertErrorLog', 'Schema Failed on insertMany - ' + _this.collectionName, [validation.validationErrors(), doc]);
|
|
879
|
+
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal.call(index_1.ResolveIOServer.getMainServer().getMethodManager(), 'insertErrorLog', 'Schema Failed on insertMany - ' + _this.collectionName, [validation.validationErrors(), doc]);
|
|
880
880
|
validationResults.push(false);
|
|
881
881
|
}
|
|
882
882
|
else {
|
|
@@ -944,7 +944,7 @@ var Collection = /** @class */ (function () {
|
|
|
944
944
|
isValid = validation.validate(doc);
|
|
945
945
|
if (!isValid) {
|
|
946
946
|
console.log(new Date(), this.collectionName, 'Schema Errors - insertOne', validation.validationErrors());
|
|
947
|
-
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal('insertErrorLog', 'Schema Failed on insertOne - ' + this.collectionName, [validation.validationErrors(), doc]);
|
|
947
|
+
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal.call(index_1.ResolveIOServer.getMainServer().getMethodManager(), 'insertErrorLog', 'Schema Failed on insertOne - ' + this.collectionName, [validation.validationErrors(), doc]);
|
|
948
948
|
reject(validation.validationErrors());
|
|
949
949
|
return [2 /*return*/];
|
|
950
950
|
}
|
|
@@ -1012,7 +1012,7 @@ var Collection = /** @class */ (function () {
|
|
|
1012
1012
|
isValid = validation.validate(replacement);
|
|
1013
1013
|
if (!isValid) {
|
|
1014
1014
|
console.log(new Date(), this.collectionName, 'Schema Errors - replaceOne', validation.validationErrors());
|
|
1015
|
-
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal('insertErrorLog', 'Schema Failed on replaceOne - ' + this.collectionName, [validation.validationErrors(), replacement]);
|
|
1015
|
+
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal.call(index_1.ResolveIOServer.getMainServer().getMethodManager(), 'insertErrorLog', 'Schema Failed on replaceOne - ' + this.collectionName, [validation.validationErrors(), replacement]);
|
|
1016
1016
|
reject(validation.validationErrors());
|
|
1017
1017
|
return [2 /*return*/];
|
|
1018
1018
|
}
|
|
@@ -1261,7 +1261,7 @@ var Collection = /** @class */ (function () {
|
|
|
1261
1261
|
isValid = validation.validate(update, { modifier: true });
|
|
1262
1262
|
if (!isValid) {
|
|
1263
1263
|
console.log(new Date(), this.collectionName, 'Schema Errors - updateMany', validation.validationErrors());
|
|
1264
|
-
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal('insertErrorLog', 'Schema Failed on updateMany - ' + this.collectionName, [validation.validationErrors(), update]);
|
|
1264
|
+
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal.call(index_1.ResolveIOServer.getMainServer().getMethodManager(), 'insertErrorLog', 'Schema Failed on updateMany - ' + this.collectionName, [validation.validationErrors(), update]);
|
|
1265
1265
|
reject(validation.validationErrors());
|
|
1266
1266
|
return [2 /*return*/];
|
|
1267
1267
|
}
|
|
@@ -1340,7 +1340,7 @@ var Collection = /** @class */ (function () {
|
|
|
1340
1340
|
isValid = validation.validate(update, { modifier: true });
|
|
1341
1341
|
if (!isValid) {
|
|
1342
1342
|
console.log(new Date(), this.collectionName, 'Schema Errors - updateOne', validation.validationErrors());
|
|
1343
|
-
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal('insertErrorLog', 'Schema Failed on updateOne - ' + this.collectionName, [validation.validationErrors(), update]);
|
|
1343
|
+
index_1.ResolveIOServer.getMainServer().getMethodManager().callMethodInternal.call(index_1.ResolveIOServer.getMainServer().getMethodManager(), 'insertErrorLog', 'Schema Failed on updateOne - ' + this.collectionName, [validation.validationErrors(), update]);
|
|
1344
1344
|
reject(validation.validationErrors());
|
|
1345
1345
|
return [2 /*return*/];
|
|
1346
1346
|
}
|