1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-08 01:15:49 +02:00

fix: format api path for outdated sdks (#6555)

This commit is contained in:
Mateusz Kwasniewski 2024-03-14 14:09:59 +01:00 committed by GitHub
parent 7c69500cd0
commit 146fbbb875
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +1,13 @@
import { fetcher, useApiGetter } from '../useApiGetter/useApiGetter';
import { OutdatedSdksSchema } from '../../../../openapi';
import { formatApiPath } from 'utils/formatPath';
const PATH = 'api/admin/metrics/sdks/outdated';
export const useOutdatedSdks = () => {
const { data, refetch, loading, error } = useApiGetter<OutdatedSdksSchema>(
PATH,
() => fetcher(PATH, 'Outdated SDKs'),
formatApiPath(PATH),
() => fetcher(formatApiPath(PATH), 'Outdated SDKs'),
{ refreshInterval: 60 * 1000 },
);