abmp-npm 2.0.4 → 2.0.6
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.
|
@@ -20,7 +20,7 @@ async function updateContactInfo(contactId, updateInfoCallback, operationName) {
|
|
|
20
20
|
const currentInfo = contact.info;
|
|
21
21
|
const updatedInfo = updateInfoCallback(currentInfo);
|
|
22
22
|
|
|
23
|
-
await elevatedUpdateContact(contactId,
|
|
23
|
+
await elevatedUpdateContact(contactId, updatedInfo, contact.revision);
|
|
24
24
|
} catch (error) {
|
|
25
25
|
console.error(`Error in ${operationName}:`, error);
|
|
26
26
|
throw new Error(`Failed to ${operationName}: ${error.message}`);
|
|
@@ -31,12 +31,12 @@ const PAC_ASSOCIATIONS = {
|
|
|
31
31
|
AHP: 'AHP',
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
const
|
|
34
|
+
const SITES_WITH_INTERESTS_TO_MIGRATE = [PAC_ASSOCIATIONS.ABMP];
|
|
35
35
|
|
|
36
36
|
module.exports = {
|
|
37
37
|
MEMBER_ACTIONS,
|
|
38
38
|
ADDRESS_VISIBILITY_OPTIONS,
|
|
39
39
|
DEFAULT_MEMBER_DISPLAY_SETTINGS,
|
|
40
40
|
PAC_ASSOCIATIONS,
|
|
41
|
-
|
|
41
|
+
SITES_WITH_INTERESTS_TO_MIGRATE,
|
|
42
42
|
};
|
|
@@ -6,7 +6,7 @@ const { TASKS_NAMES } = require('../tasks/consts');
|
|
|
6
6
|
const { getSiteConfigs } = require('../utils');
|
|
7
7
|
|
|
8
8
|
const { bulkProcessAndSaveMemberData } = require('./bulk-process-methods');
|
|
9
|
-
const {
|
|
9
|
+
const { SITES_WITH_INTERESTS_TO_MIGRATE } = require('./consts');
|
|
10
10
|
const { isUpdatedMember, isSiteAssociatedMember } = require('./utils');
|
|
11
11
|
|
|
12
12
|
async function syncMembersDataPerAction(action) {
|
|
@@ -80,7 +80,7 @@ async function synchronizeSinglePage(taskObject) {
|
|
|
80
80
|
getSiteConfigs(CONFIG_KEYS.SITE_ASSOCIATION),
|
|
81
81
|
fetchPACMembers(pageNumber, action),
|
|
82
82
|
]);
|
|
83
|
-
const addInterests =
|
|
83
|
+
const addInterests = SITES_WITH_INTERESTS_TO_MIGRATE.includes(siteAssociation);
|
|
84
84
|
if (
|
|
85
85
|
!memberDataResponse ||
|
|
86
86
|
!memberDataResponse.results ||
|
package/package.json
CHANGED
package/public/Utils/homePage.js
CHANGED
|
@@ -127,6 +127,8 @@ const createHomepageUtils = (_$w, filterProfiles) => {
|
|
|
127
127
|
|
|
128
128
|
paginateSearchResults(searchResults, pagination);
|
|
129
129
|
await updateUrlParams(filter, pagination);
|
|
130
|
+
|
|
131
|
+
_$w('#resultsStateBox').scrollTo();
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
async function onChangeMultiCheckbox({
|