Skip to content

Commit

Permalink
Add explicit type to unmute_alert's transformRequestParamsToApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
umbopepato committed Jul 30, 2024
1 parent c4ea7db commit d9aa442
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@

import { UnmuteAlertParams } from '../../../../../../application/rule/methods/unmute_alert/types';
import { RewriteRequestCase } from '../../../../../lib';
import { UnmuteAlertRequestParamsV1 } from '../../../../../../../common/routes/rule/apis/unmute_alert';

export const transformRequestParamsToApplication: RewriteRequestCase<UnmuteAlertParams> = ({
rule_id: alertId,
alert_id: alertInstanceId,
}) => ({
}: UnmuteAlertRequestParamsV1) => ({
alertId,
alertInstanceId,
});

0 comments on commit d9aa442

Please sign in to comment.