Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR feedback
Browse files Browse the repository at this point in the history
cnasikas committed Nov 25, 2024
1 parent 4d49fe3 commit 53a06e6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions x-pack/plugins/cases/server/client/cases/bulk_update.ts
Original file line number Diff line number Diff line change
@@ -288,19 +288,16 @@ function partitionPatchRequest(
conflictedCases.push(reqCase);
// let's try to authorize the conflicted case even though we'll fail after afterwards just in case
casesToAuthorize.set(foundCase.id, { id: foundCase.id, owner: foundCase.attributes.owner });
} else {
casesToAuthorize.set(foundCase.id, { id: foundCase.id, owner: foundCase.attributes.owner });
}

if (
foundCase != null &&
!isSOError(foundCase) &&
} else if (
reqCase.status != null &&
foundCase.attributes.status !== reqCase.status &&
foundCase.attributes.status === CaseStatuses.closed
) {
// Track cases that are closed and a user is attempting to reopen
reopenedCases.push(reqCase);
casesToAuthorize.set(foundCase.id, { id: foundCase.id, owner: foundCase.attributes.owner });
} else {
casesToAuthorize.set(foundCase.id, { id: foundCase.id, owner: foundCase.attributes.owner });
}
}

0 comments on commit 53a06e6

Please sign in to comment.