mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: format api path for outdated sdks (#6555)
This commit is contained in:
		
							parent
							
								
									7c69500cd0
								
							
						
					
					
						commit
						146fbbb875
					
				| @ -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 }, | ||||
|     ); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user