Skip to content

Commit

Permalink
didnt change all the length to last
Browse files Browse the repository at this point in the history
  • Loading branch information
andieswift committed Jan 23, 2025
1 parent 5eaca99 commit 8349341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lambda/adminActions/submitNOSO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export const copyAttachments = async (data: any) => {
// add the attachments to the last index of the currentPackage Change Log
const last = currentPackageChangelog.hits.hits.length - 1;
currentPackageChangelog.hits.hits[last]._source.attachments = attachments;
console.log("Did I change it??", currentPackageChangelog.hits.hits[length]);
console.log("Did I change it??", currentPackageChangelog.hits.hits[last]);

return currentPackageChangelog.hits.hits[length];
return currentPackageChangelog.hits.hits[last];
}

console.log("did not copy over attachements");
Expand Down

0 comments on commit 8349341

Please sign in to comment.