@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.
@@ -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 * 10 });
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,6 @@
1
+ export declare class DatabaseManager {
2
+ private _queue;
3
+ private _server;
4
+ constructor(mainServer: any);
5
+ addDatabaseQueue(): void;
6
+ }
@@ -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;
@@ -213,7 +213,7 @@ var MethodManager = /** @class */ (function () {
213
213
  _this._runningQueue = false;
214
214
  }
215
215
  }
216
- }, 50);
216
+ }, 25);
217
217
  }
218
218
  MethodManager.prototype.getMainServer = function () {
219
219
  return this._mainServer;
@@ -109,7 +109,7 @@ var QueueMethodManager = /** @class */ (function () {
109
109
  _this._runningQueue = false;
110
110
  }
111
111
  }
112
- }, 50);
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
- }, 50);
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
- }, 1000);
528
+ }, 25);
529
529
  };
530
530
  SubscriptionManager.prototype.resendPubsForDelete = function (collection) {
531
531
  var that = this;
@@ -91,7 +91,7 @@ var SupportManager = /** @class */ (function () {
91
91
  _this._runningQueue = false;
92
92
  }
93
93
  }
94
- }, 250);
94
+ }, 25);
95
95
  }
96
96
  SupportManager.prototype.getMainServer = function () {
97
97
  return this._mainServer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {
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
- }); }, 100);
629
+ }); }, 25);
630
630
  };
631
631
  ResolveIOMainServer.prototype.unsubscribeWS = function (ws) {
632
632
  this._subscriptionManager.unsubscribeAll(ws);