fix: memory search date validation (#29907)

This commit is contained in:
Daniel Dietzler
2026-07-14 16:34:38 +02:00
committed by GitHub
parent 9c8d718ddc
commit 2ed8b2bddd
3 changed files with 9 additions and 10 deletions
@@ -3,7 +3,6 @@ import { DateTime } from 'luxon';
import { authManager } from '$lib/managers/auth-manager.svelte';
import { eventManager } from '$lib/managers/event-manager.svelte';
import type { TimelineAsset } from '$lib/managers/timeline-manager/types';
import { asLocalTimeISO } from '$lib/utils/date-time';
import { toTimelineAsset } from '$lib/utils/timeline-util';
type MemoryIndex = {
@@ -131,7 +130,7 @@ class MemoryManager {
}
private async load() {
const memories = await searchMemories({ $for: asLocalTimeISO(DateTime.now()) });
const memories = await searchMemories({ $for: DateTime.now().toFormat('yyyy-MM-dd') });
this.memories = memories.filter((memory) => memory.assets.length > 0);
}