From 6c1b9fbade9aff7c614a857436ab47e732e03e2a Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Mon, 12 Aug 2024 08:37:41 +0200 Subject: [PATCH] Fix header sending --- frontend/src/api/alert.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/api/alert.ts b/frontend/src/api/alert.ts index 53d1f28b6c..1b8acf892e 100644 --- a/frontend/src/api/alert.ts +++ b/frontend/src/api/alert.ts @@ -1,7 +1,5 @@ // TODO We could remove the type discrimation normalization step if we had it done on API side. -import ky from 'ky' - import { monitorfishApi, monitorfishApiKy } from './api' import { ApiError } from '../libs/ApiError' @@ -90,7 +88,7 @@ async function silenceAlertFromAPI( const beforeDateTime = silencedAlertPeriodRequest.beforeDateTime?.toISOString() || '' try { - return await ky + return await monitorfishApiKy .put(`/bff/v1/operational_alerts/${id}/silence`, { json: { beforeDateTime,