18 lines
287 B
TypeScript
18 lines
287 B
TypeScript
import {
|
|
getPhotosCached,
|
|
getPhotosMetaCached,
|
|
} from '@/photo/cache';
|
|
|
|
export const getPhotosFocalLengthDataCached = ({
|
|
focal,
|
|
limit,
|
|
}: {
|
|
focal: number,
|
|
limit?: number,
|
|
}) =>
|
|
Promise.all([
|
|
getPhotosCached({ focal, limit }),
|
|
getPhotosMetaCached({ focal }),
|
|
]);
|
|
|