Vercel/src/simulation/data.ts
2024-05-20 11:13:44 -05:00

18 lines
353 B
TypeScript

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