Vercel/src/focal/data.ts
2024-05-21 12:34:45 -05:00

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 }),
]);