@pioneer-platform/pioneer 8.2.17 → 8.2.18

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1135,7 +1135,9 @@ var register_pubkeys = function (username, pubkeys) {
1135
1135
  saveActions.push(action);
1136
1136
  return [3 /*break*/, 13];
1137
1137
  case 11:
1138
- if (!(pubkeyExists.indexOf(username) === -1)) return [3 /*break*/, 13];
1138
+ //add tag for username
1139
+ log.info(tag, "pubkeyExists.tags: ", pubkeyExists.tags);
1140
+ if (!(pubkeyExists.tags.indexOf(username) === -1)) return [3 /*break*/, 13];
1139
1141
  return [4 /*yield*/, pubkeysDB.update({ pubkey: pubkeyInfo.pubkey }, { $addToSet: { tags: { $each: [username] } } })];
1140
1142
  case 12:
1141
1143
  pushTagMongo = _c.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer",
3
- "version": "8.2.17",
3
+ "version": "8.2.18",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {