@resolveio/server-lib 5.2.29 → 5.2.30

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.
@@ -167,9 +167,11 @@ var SubscriptionManager = /** @class */ (function () {
167
167
  };
168
168
  SubscriptionManager.prototype.loggedInLatency = function (ws) {
169
169
  return __awaiter(this, void 0, void 0, function () {
170
+ var date;
170
171
  var _this = this;
171
172
  return __generator(this, function (_a) {
172
- logged_in_users_collection_1.LoggedInUsers.findOneAndUpdate({ id_ws: ws['id_socket'] }, { $set: { latency: ws['latency'] } }).exec(function (err, res) {
173
+ date = new Date();
174
+ logged_in_users_collection_1.LoggedInUsers.findOneAndUpdate({ id_ws: ws['id_socket'] }, { $set: { latency: ws['latency'], updatedAt: date } }).exec(function (err, res) {
173
175
  if (err) {
174
176
  _this.unsubscribeAll(ws);
175
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "5.2.29",
3
+ "version": "5.2.30",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {