@plusscommunities/pluss-core-aws 1.5.7-beta.0 → 1.5.9-beta.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.
|
@@ -3,7 +3,7 @@ const indexQuery = require("../../db/common/indexQuery");
|
|
|
3
3
|
const getRef = require("../../db/common/getRef");
|
|
4
4
|
const scanRefRecursive = require("../../db/common/scanRefRecursive");
|
|
5
5
|
const userToUserPreview = require("../userToUserPreview");
|
|
6
|
-
const { getRowId } = require("..");
|
|
6
|
+
const { getRowId, log } = require("..");
|
|
7
7
|
|
|
8
8
|
const getUsers = async (site) => {
|
|
9
9
|
if (site === "all") {
|
|
@@ -125,7 +125,7 @@ const getEventMatches = async (users, audienceTypeSelection) => {
|
|
|
125
125
|
let userIds = [];
|
|
126
126
|
|
|
127
127
|
for (let i = 0; i < eventAudiences.length; i++) {
|
|
128
|
-
log("getEventMatches", "MatchingEventAudience", eventAudiences[i]);
|
|
128
|
+
log("getEventMatches", "MatchingEventAudience", eventAudiences[i], logId);
|
|
129
129
|
const eventRep = await getRef(
|
|
130
130
|
"eventreps",
|
|
131
131
|
"RowId",
|
|
@@ -138,9 +138,14 @@ const getEventMatches = async (users, audienceTypeSelection) => {
|
|
|
138
138
|
userIds = _.concat(userIds, Object.keys(eventRep.Attendees));
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
log("getEventMatches", "userIdsLength", userIds.length);
|
|
141
|
+
log("getEventMatches", "userIdsLength", userIds.length, logId);
|
|
142
142
|
}
|
|
143
|
-
return _.filter(users, (u) =>
|
|
143
|
+
return _.filter(users, (u) => {
|
|
144
|
+
log("getEventMatches", "userId", u.id, logId);
|
|
145
|
+
log("getEventMatches", "containsUserId", _.includes(userIds, u.id), logId);
|
|
146
|
+
|
|
147
|
+
return _.includes(userIds, u.id);
|
|
148
|
+
});
|
|
144
149
|
};
|
|
145
150
|
|
|
146
151
|
module.exports = async (
|
package/package.json
CHANGED