Skip to content

Commit

Permalink
trying to index to far
Browse files Browse the repository at this point in the history
  • Loading branch information
andieswift committed Jan 23, 2025
1 parent 0a1c885 commit 5eaca99
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 @@ -75,8 +75,8 @@ export const copyAttachments = async (data: any) => {
console.log("Current package: ", currentPackage);

// add the attachments to the last index of the currentPackage Change Log
const length = currentPackageChangelog.hits.hits.length;
currentPackageChangelog.hits.hits[length]._source.attachments = attachments;
const last = currentPackageChangelog.hits.hits.length - 1;
currentPackageChangelog.hits.hits[last]._source.attachments = attachments;
console.log("Did I change it??", currentPackageChangelog.hits.hits[length]);

return currentPackageChangelog.hits.hits[length];
Expand Down

0 comments on commit 5eaca99

Please sign in to comment.