From df9b92f19fbf63dceeed19b704a4c1c56a340ed2 Mon Sep 17 00:00:00 2001 From: Andie Swift Date: Wed, 22 Jan 2025 17:42:35 -0600 Subject: [PATCH] more variable mix ups --- lib/lambda/adminActions/submitNOSO.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/lambda/adminActions/submitNOSO.ts b/lib/lambda/adminActions/submitNOSO.ts index 323f84fb4..1df2cd92a 100644 --- a/lib/lambda/adminActions/submitNOSO.ts +++ b/lib/lambda/adminActions/submitNOSO.ts @@ -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); @@ -82,7 +85,7 @@ const sendSubmitMessage = async ({ ...currentPackage._source, id: id, packageId: id, - copyAttachmentsFromId: copyAttachmentsFromId ?? null, + copyAttachmentsFromId: copyAttachmentsFromId, origin: "SEATool", isAdminChange: true, adminChangeType: "NOSO",