Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: [AEA-4168] - 200 and 409 Response returned for the same Item #377

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ const lambdaHandler = async (event: APIGatewayProxyEvent): Promise<APIGatewayPro
logger.info("No entries to process.")
return response(200, responseEntries)
}

const entriesValid = validateEntries(requestEntries, responseEntries)
if (!entriesValid) {
return response(400, responseEntries)
Expand Down Expand Up @@ -155,6 +154,8 @@ export function handleTransactionCancelledException(
e: TransactionCanceledException,
responseEntries: Array<BundleEntry>
): void {
responseEntries.length = 0

e.CancellationReasons?.forEach((reason) => {
if (reason.Item?.TaskID?.S) {
const taskId = reason.Item.TaskID.S
Expand Down