@resolveio/server-lib 4.1.4 → 4.1.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.
|
@@ -723,8 +723,9 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
723
723
|
var _this = this;
|
|
724
724
|
return __generator(this, function (_c) {
|
|
725
725
|
that = this;
|
|
726
|
-
if (subscription.publication !== 'superadminAPM')
|
|
726
|
+
if (subscription.publication !== 'superadminAPM') {
|
|
727
727
|
that._mainServer.getMethodManager().callMethodInternal('insertSubscriptionLog', type, subscription.publication, collection);
|
|
728
|
+
}
|
|
728
729
|
if (!that._publications[subscription.publication].ws_specific) { // Same pub for all users
|
|
729
730
|
(_a = that._publications[subscription.publication].function).call.apply(_a, [Object.assign({}, that, SubscriptionManager.prototype)].concat(subscription.subscriptionData)).then(function (res) {
|
|
730
731
|
var serverRes = {
|
|
@@ -771,7 +772,9 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
771
772
|
var _this = this;
|
|
772
773
|
return __generator(this, function (_b) {
|
|
773
774
|
that = this;
|
|
774
|
-
|
|
775
|
+
if (subscription.publication !== 'superadminAPM') {
|
|
776
|
+
that._mainServer.getMethodManager().callMethodInternal('insertSubscriptionLog', type, subscription.publication, collection);
|
|
777
|
+
}
|
|
775
778
|
(_a = that._publications[subscription.publication].function).call.apply(_a, [Object.assign({}, that, SubscriptionManager.prototype)].concat(subscription.subscriptionData)).then(function (res) {
|
|
776
779
|
subscription.clients.forEach(function (client) {
|
|
777
780
|
that._wss.clients.forEach(function (ws) {
|