Skip to content

Commit

Permalink
fixup! wip4 :(
Browse files Browse the repository at this point in the history
  • Loading branch information
kernicPanel committed Aug 4, 2023
1 parent 29c9e3d commit 77f6eb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { DepositedFileMetadata } from 'apps/deposit/types/metadata';

export const useDepositedFileMetadata = (
locale: string,
parentID: string,
fileDepositoryId: string,
queryConfig?: UseQueryOptions<
DepositedFileMetadata,
'depositedfiles',
DepositedFileMetadata,
string[]
>,
) => {
const key = [`filedepositories/${parentID}/depositedfiles`, locale];
const key = [`filedepositories/${fileDepositoryId}/depositedfiles`, locale];
return useQuery<
DepositedFileMetadata,
'depositedfiles',
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/apps/lti_site/data/queries/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const useThumbnail = (
videoId: string,
queryConfig?: UseQueryOptions<Thumbnail, 'thumbnails', Thumbnail>,
) => {
const key = ['videos', videoId, `thumbnails/${thumbnailId}`];
const key = [`videos/${videoId}/thumbnails`, thumbnailId];
return useQuery<Thumbnail, 'thumbnails'>({
queryKey: key,
queryFn: fetchOne,
Expand Down

0 comments on commit 77f6eb4

Please sign in to comment.