abmp-npm 10.0.43 → 10.0.44
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/backend/jobs.js +15 -0
- package/package.json +1 -1
package/backend/jobs.js
CHANGED
|
@@ -68,6 +68,20 @@ async function scheduleCreateContactsFromMembersTask() {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
async function scheduleFixPrimaryAddressForMembersTask() {
|
|
72
|
+
try {
|
|
73
|
+
console.log('scheduleFixPrimaryAddressForMembers started!');
|
|
74
|
+
return await taskManager().schedule({
|
|
75
|
+
name: TASKS_NAMES.scheduleFixPrimaryAddressForMembers,
|
|
76
|
+
data: {},
|
|
77
|
+
type: 'scheduled',
|
|
78
|
+
});
|
|
79
|
+
} catch (error) {
|
|
80
|
+
console.error(`Failed to scheduleFixPrimaryAddressForMembers: ${error.message}`);
|
|
81
|
+
throw new Error(`Failed to scheduleFixPrimaryAddressForMembers: ${error.message}`);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
71
85
|
async function updateSiteMapS3() {
|
|
72
86
|
try {
|
|
73
87
|
return await taskManager().schedule({
|
|
@@ -85,4 +99,5 @@ module.exports = {
|
|
|
85
99
|
scheduleDailyPullTask,
|
|
86
100
|
updateSiteMapS3,
|
|
87
101
|
scheduleCreateContactsFromMembersTask,
|
|
102
|
+
scheduleFixPrimaryAddressForMembersTask,
|
|
88
103
|
};
|