feat: birthday memories (#30831)

This commit is contained in:
Alex
2026-09-22 04:30:43 -05:00
committed by GitHub
parent f48d4b3321
commit d6d0947383
23 changed files with 1111 additions and 60 deletions
@@ -1,5 +1,5 @@
import { faker } from '@faker-js/faker';
import { MemoryType, type MemoryResponseDto, type OnThisDayDto } from '@immich/sdk';
import { MemoryType, type MemoryResponseDto } from '@immich/sdk';
import { DateTime } from 'luxon';
import { toAssetResponseDto } from 'src/ui/generators/timeline/rest-response.js';
import type { MockTimelineAsset } from 'src/ui/generators/timeline/timeline-config.js';
@@ -25,7 +25,7 @@ export function generateMemory(config: MemoryConfig, assets: MockTimelineAsset[]
return {
id: memoryId,
assets: assets.map((asset) => toAssetResponseDto(asset)),
data: { year: config.year } as OnThisDayDto,
data: { year: config.year },
memoryAt: config.memoryAt,
createdAt: now,
updatedAt: now,