@resolveio/server-lib 1.1.1 → 1.1.2

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.
@@ -105,8 +105,10 @@ function loadCronJobMethods(methodManager) {
105
105
  }
106
106
  }),
107
107
  function: function (users) {
108
+ var _this = this;
108
109
  return new Promise(function (resolve, reject) {
109
110
  users.forEach(function (user) {
111
+ user['client'] = _this.serverConfig['CLIENT_NAME'];
110
112
  user_collection_1.ClientUsers.updateOne({ _id: user._id }, { $setOnInsert: { _id: mongoose_1.Types.ObjectId().toHexString(), __v: 0 }, $set: user }, { upsert: true }).exec();
111
113
  });
112
114
  resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {