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..b4a0411962 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,