From 51131f430e968d4ece0f180dd1280d1c742ae9d5 Mon Sep 17 00:00:00 2001 From: m0ar Date: Thu, 21 Mar 2024 10:59:56 +0100 Subject: [PATCH] teeny type fix --- desci-server/src/scripts/fetch-drive-tree-for-cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desci-server/src/scripts/fetch-drive-tree-for-cache.ts b/desci-server/src/scripts/fetch-drive-tree-for-cache.ts index b89444ee8..8501c49c6 100644 --- a/desci-server/src/scripts/fetch-drive-tree-for-cache.ts +++ b/desci-server/src/scripts/fetch-drive-tree-for-cache.ts @@ -9,7 +9,7 @@ async function getTree(path?: string) { console.log('get tree for path', path); const target = `${url}${path ? `&dataPath=${path}` : ''}`; const res = await fetch(target); - const { tree } = await res.json(); + const { tree } = await res.json() as { tree: unknown }; return tree; }