abmp-npm 1.8.26 → 1.8.27

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.
@@ -165,7 +165,7 @@ async function updateContactEmail(contactId, newEmail) {
165
165
  throw new Error('New email is required');
166
166
  }
167
167
 
168
- return updateContactInfo(
168
+ return await updateContactInfo(
169
169
  contactId,
170
170
  currentInfo => ({
171
171
  ...currentInfo,
@@ -193,7 +193,7 @@ async function updateContactNames(contactId, firstName, lastName) {
193
193
  throw new Error('At least one name field is required');
194
194
  }
195
195
 
196
- return updateContactInfo(
196
+ return await updateContactInfo(
197
197
  contactId,
198
198
  currentInfo => ({
199
199
  ...currentInfo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abmp-npm",
3
- "version": "1.8.26",
3
+ "version": "1.8.27",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -952,7 +952,7 @@ async function personalDetailsOnReady({
952
952
  // Capture data before save for logging
953
953
  const beforeSaveData = JSON.parse(JSON.stringify(itemMemberObj));
954
954
 
955
- const { type, saveData: saved } = await saveRegistrationData(formData, itemMemberObj.memberId);
955
+ const { type, saveData: saved } = await saveRegistrationData(formData, itemMemberObj._id);
956
956
 
957
957
  if (type === 'success') {
958
958
  // Log the successful change