@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.
- package/lib/index.js +3 -1
- 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
|
-
|
|
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();
|