Skip to content

Commit

Permalink
[Transform] fix forbidden
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Dec 7, 2020
1 parent 6505b30 commit 7f1bbe9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/transform/server/routes/api/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ async function deleteTransforms(
destIndexPatternDeleted,
destinationIndex,
};
continue;
}

// If user checks box to delete the destinationIndex associated with the job
Expand Down Expand Up @@ -498,7 +497,7 @@ async function deleteTransforms(
transformDeleted.success = true;
} catch (deleteTransformJobError) {
transformDeleted.error = wrapError(deleteTransformJobError);
if (transformDeleted.error.statusCode === 403) {
if (deleteTransformJobError.statusCode === 403) {
return response.forbidden();
}
}
Expand Down

0 comments on commit 7f1bbe9

Please sign in to comment.