Skip to content

Commit

Permalink
id wasnt defined
Browse files Browse the repository at this point in the history
  • Loading branch information
andieswift committed Jan 22, 2025
1 parent c297b11 commit cede84c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/lambda/adminActions/submitNOSO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ const sendSubmitMessage = async ({
id,
JSON.stringify({
...currentPackage._source,
copyAttachmentsFromId: copyAttachmentsFromId,
id: id,
packageId: id,
copyAttachmentsFromId: copyAttachmentsFromId ?? null,
origin: "SEATool",
isAdminChange: true,
adminChangeType: "NOSO",
Expand Down
2 changes: 1 addition & 1 deletion lib/lambda/sinkChangelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const processAndIndex = async ({
packageId: result.data.id,
});
});
} else if (result.data.adminChangeType === "NOSO") {
} else if (result.data.adminChangeType === "NOSO" && result.data.copyAttachmentsFrom) {
try {
const data = await copyAttachments(result.data);
docs.push(data);
Expand Down

0 comments on commit cede84c

Please sign in to comment.