Skip to content

Commit

Permalink
[ML] Fix action name.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Jan 26, 2022
1 parent 894b117 commit de12f96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x-pack/plugins/transform/server/routes/api/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ import { isKeywordDuplicate } from '../../../common/utils/field_utils';
import { transformHealthServiceProvider } from '../../lib/alerting/transform_health_rule_type/transform_health_service';

enum TRANSFORM_ACTIONS {
DELETE = 'delete',
RESET = 'reset',
STOP = 'stop',
START = 'start',
DELETE = 'delete',
}

export function registerTransformsRoutes(routeDependencies: RouteDependencies) {
Expand Down Expand Up @@ -627,7 +628,7 @@ async function resetTransforms(
results,
id: transformInfo.id,
items: transformsInfo,
action: TRANSFORM_ACTIONS.DELETE,
action: TRANSFORM_ACTIONS.RESET,
});
}
results[transformId] = { transformReset: { success: false, error: e.meta.body.error } };
Expand Down

0 comments on commit de12f96

Please sign in to comment.