diff --git a/apps/scandic-web/services/dataCache/DistributedCache/deleteKey.ts b/apps/scandic-web/services/dataCache/DistributedCache/deleteKey.ts index 30ca1fdbd..25eaa8a18 100644 --- a/apps/scandic-web/services/dataCache/DistributedCache/deleteKey.ts +++ b/apps/scandic-web/services/dataCache/DistributedCache/deleteKey.ts @@ -4,7 +4,7 @@ import { cacheLogger } from "../logger" import { API_KEY } from "./client" import { getCacheEndpoint } from "./endpoints" -export async function deleteKey(key: string, opts?: { fuzzy?: boolean }) { +export async function deleteKey(key: string, opts?: { fuzzy?: boolean }) { const perf = performance.now() const endpoint = getCacheEndpoint(key) @@ -35,9 +35,7 @@ export async function deleteKey(key: string, opts?: { fuzzy?: boolean }) { return undefined } - const data = (await response.json()) as { data: T } cacheLogger.debug( `Delete '${key}' took ${(performance.now() - perf).toFixed(2)}ms` ) - return data.data }