Vercel/src/tag/data.ts
2024-05-20 10:48:33 -05:00

18 lines
271 B
TypeScript

import {
getPhotosCached,
getPhotosMetaCached,
} from '@/photo/cache';
export const getPhotosTagDataCached = ({
tag,
limit,
}: {
tag: string,
limit?: number,
}) =>
Promise.all([
getPhotosCached({ tag, limit }),
getPhotosMetaCached({ tag }),
]);