@resolveio/server-lib 3.2.0 → 3.2.1
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/collections/log.collection.js +1 -1
- package/managers/database.manager.d.ts +6 -0
- package/managers/database.manager.js +12 -0
- package/managers/method.manager.js +1 -1
- package/managers/queue-method.manager.js +1 -1
- package/managers/subscription.manager.js +2 -2
- package/managers/support.manager.js +1 -1
- package/package.json +1 -1
- package/server-app.js +1 -1
|
@@ -49,7 +49,7 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
|
|
|
49
49
|
versionKey: false,
|
|
50
50
|
timestamps: true
|
|
51
51
|
});
|
|
52
|
-
DefaultSchema.index({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 *
|
|
52
|
+
DefaultSchema.index({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
53
53
|
DefaultSchema.index({ type: 1 });
|
|
54
54
|
DefaultSchema.index({ date: 1, type: 1 });
|
|
55
55
|
exports.Logs = index_1.ResolveIOServer.getMainDB().model('logs', DefaultSchema);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var DatabaseManager = /** @class */ (function () {
|
|
4
|
+
function DatabaseManager(mainServer) {
|
|
5
|
+
this._queue = [];
|
|
6
|
+
this._server = mainServer;
|
|
7
|
+
}
|
|
8
|
+
DatabaseManager.prototype.addDatabaseQueue = function () {
|
|
9
|
+
};
|
|
10
|
+
return DatabaseManager;
|
|
11
|
+
}());
|
|
12
|
+
exports.DatabaseManager = DatabaseManager;
|
|
@@ -109,7 +109,7 @@ var QueueMethodManager = /** @class */ (function () {
|
|
|
109
109
|
_this._runningQueue = false;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
},
|
|
112
|
+
}, 25);
|
|
113
113
|
}
|
|
114
114
|
QueueMethodManager.prototype.addMethodToQueue = function (id_ws, id_user, user, messageDate, messageId, method, data) {
|
|
115
115
|
// console.log('Add Method To Queue', method);
|
|
@@ -111,7 +111,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
111
111
|
_this._runningQueue = false;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, 25);
|
|
115
115
|
}
|
|
116
116
|
// Add all files to publications private object
|
|
117
117
|
SubscriptionManager.prototype.publications = function (method) {
|
|
@@ -525,7 +525,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
});
|
|
528
|
-
},
|
|
528
|
+
}, 25);
|
|
529
529
|
};
|
|
530
530
|
SubscriptionManager.prototype.resendPubsForDelete = function (collection) {
|
|
531
531
|
var that = this;
|
package/package.json
CHANGED
package/server-app.js
CHANGED
|
@@ -626,7 +626,7 @@ var ResolveIOMainServer = /** @class */ (function () {
|
|
|
626
626
|
case 5: return [2 /*return*/];
|
|
627
627
|
}
|
|
628
628
|
});
|
|
629
|
-
}); },
|
|
629
|
+
}); }, 25);
|
|
630
630
|
};
|
|
631
631
|
ResolveIOMainServer.prototype.unsubscribeWS = function (ws) {
|
|
632
632
|
this._subscriptionManager.unsubscribeAll(ws);
|