Skip to content

Commit

Permalink
more variable mix ups
Browse files Browse the repository at this point in the history
  • Loading branch information
andieswift committed Jan 22, 2025
1 parent 63434be commit df9b92f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/lambda/adminActions/submitNOSO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export const copyAttachments = async (data: any) => {
//ANDIE: change type not any
// change any
if (!data.copyAttachmentsFromId) return data;
const copyAttachmentsFromId = data.copyAttachments;
const copyAttachmentsFromId = data.copyAttachmentsFromId;

console.log("copyAttachmentsFromId", copyAttachmentsFromId);
console.log("id:", data.id);

// get the attachementPackage
const attachPackage = await getPackage(copyAttachmentsFromId);
Expand Down Expand Up @@ -82,7 +85,7 @@ const sendSubmitMessage = async ({
...currentPackage._source,
id: id,
packageId: id,
copyAttachmentsFromId: copyAttachmentsFromId ?? null,
copyAttachmentsFromId: copyAttachmentsFromId,
origin: "SEATool",
isAdminChange: true,
adminChangeType: "NOSO",
Expand Down

0 comments on commit df9b92f

Please sign in to comment.