From 15583f603c6f9da0c42e37744ed02f4e13325ae6 Mon Sep 17 00:00:00 2001 From: Nicolas Clerc Date: Fri, 4 Aug 2023 12:29:56 +0200 Subject: [PATCH] fixup! wip4 :( --- .../apps/deposit/api/useDepositedFileMetadata/index.ts | 4 ++-- src/frontend/apps/lti_site/data/queries/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/apps/lti_site/apps/deposit/api/useDepositedFileMetadata/index.ts b/src/frontend/apps/lti_site/apps/deposit/api/useDepositedFileMetadata/index.ts index 32973f3266..50ceda1c93 100644 --- a/src/frontend/apps/lti_site/apps/deposit/api/useDepositedFileMetadata/index.ts +++ b/src/frontend/apps/lti_site/apps/deposit/api/useDepositedFileMetadata/index.ts @@ -5,7 +5,7 @@ import { DepositedFileMetadata } from 'apps/deposit/types/metadata'; export const useDepositedFileMetadata = ( locale: string, - parentID: string, + fileDepositoryId: string, queryConfig?: UseQueryOptions< DepositedFileMetadata, 'depositedfiles', @@ -13,7 +13,7 @@ export const useDepositedFileMetadata = ( string[] >, ) => { - const key = [`filedepositories/${parentID}/depositedfiles`, locale]; + const key = [`filedepositories/${fileDepositoryId}/depositedfiles`, locale]; return useQuery< DepositedFileMetadata, 'depositedfiles', diff --git a/src/frontend/apps/lti_site/data/queries/index.tsx b/src/frontend/apps/lti_site/data/queries/index.tsx index 6af7dd8d6a..0d6926eeeb 100644 --- a/src/frontend/apps/lti_site/data/queries/index.tsx +++ b/src/frontend/apps/lti_site/data/queries/index.tsx @@ -127,7 +127,7 @@ export const useThumbnail = ( videoId: string, queryConfig?: UseQueryOptions, ) => { - const key = ['videos', videoId, `thumbnails/${thumbnailId}`]; + const key = [`videos/${videoId}/thumbnails/`, thumbnailId]; return useQuery({ queryKey: key, queryFn: fetchOne,