abmp-npm 10.0.54 → 10.0.55
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.
|
@@ -411,7 +411,7 @@ async function getMembersWithWixUrl() {
|
|
|
411
411
|
.ne('action', MEMBER_ACTIONS.DROP)
|
|
412
412
|
.ne('memberships.membertype', MEMBERSHIPS_TYPES.PAC_STAFF)
|
|
413
413
|
.ne('memberships.membertype', MEMBERSHIPS_TYPES.STUDENT)
|
|
414
|
-
|
|
414
|
+
//.isNotEmpty('url') - not used because it's not working as expected
|
|
415
415
|
.limit(1000);
|
|
416
416
|
let currentResults = await membersQuery.find();
|
|
417
417
|
let i = 0;
|
|
@@ -423,7 +423,9 @@ async function getMembersWithWixUrl() {
|
|
|
423
423
|
i++;
|
|
424
424
|
}
|
|
425
425
|
console.log('i is ', i);
|
|
426
|
-
const filtered = allItems.filter(
|
|
426
|
+
const filtered = allItems.filter(
|
|
427
|
+
item => typeof item.url === 'string' && !item.url.includes('/') && item.url !== ''
|
|
428
|
+
);
|
|
427
429
|
console.log('filtered is ', filtered.length);
|
|
428
430
|
return filtered;
|
|
429
431
|
}
|