mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix: memory search date validation (#29907)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue