Fix cached getPhotos request
This commit is contained in:
parent
c5c78e527e
commit
61fca59d87
@ -1,6 +1,5 @@
|
|||||||
import { getPhotosMetaCached } from '@/photo/cache';
|
import { getPhotosCached, getPhotosMetaCached } from '@/photo/cache';
|
||||||
import { Album } from '.';
|
import { Album } from '.';
|
||||||
import { getPhotos } from '@/photo/query';
|
|
||||||
|
|
||||||
export const getPhotosAlbumDataCached = ({
|
export const getPhotosAlbumDataCached = ({
|
||||||
album,
|
album,
|
||||||
@ -10,7 +9,7 @@ export const getPhotosAlbumDataCached = ({
|
|||||||
limit?: number,
|
limit?: number,
|
||||||
}) =>
|
}) =>
|
||||||
Promise.all([
|
Promise.all([
|
||||||
getPhotos({ album, limit }),
|
getPhotosCached({ album, limit }),
|
||||||
getPhotosMetaCached({ album }),
|
getPhotosMetaCached({ album }),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user