18 lines
353 B
TypeScript
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 }),
|
|
]);
|