From bcaca1e62cceaf6a32010ee2e805beb3171c7ebc Mon Sep 17 00:00:00 2001 From: John Twyman Date: Tue, 6 Aug 2024 22:41:21 +1000 Subject: [PATCH] Fix double const declaration --- src/extensions/contact-loaders/civicrm/util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extensions/contact-loaders/civicrm/util.js b/src/extensions/contact-loaders/civicrm/util.js index 841da8f55..9198792ec 100644 --- a/src/extensions/contact-loaders/civicrm/util.js +++ b/src/extensions/contact-loaders/civicrm/util.js @@ -240,7 +240,7 @@ export async function addContactToTag(contactId, tagId) { export async function addPendingNote(contactId) { const config = getCivi(); - const res = await fetchfromAPI( + const pendingNoteRes = await fetchfromAPI( config, "CustomValue", { @@ -252,7 +252,7 @@ export async function addPendingNote(contactId) { { method: "post" } ); - const res = await fetchfromAPI( + const activityRes = await fetchfromAPI( config, "Activity", { @@ -267,7 +267,7 @@ export async function addPendingNote(contactId) { { method: "post" } ); - return res; + return activityRes; } /**