From ca8a2754b9ad25d472e6c3be95a8495bcfa6c79a Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Fri, 13 Feb 2026 11:52:05 -0800 Subject: [PATCH] Fix getEventsByIdForUrl for filters with ids --- packages/store/src/repository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/store/src/repository.ts b/packages/store/src/repository.ts index c4b536e..1742526 100644 --- a/packages/store/src/repository.ts +++ b/packages/store/src/repository.ts @@ -1,5 +1,5 @@ import {readable, Readable} from "svelte/store" -import {on, assoc, now, mapPop, Maybe, MaybeAsync, call, sortBy, first} from "@welshman/lib" +import {on, now, mapPop, Maybe, MaybeAsync, call, sortBy, first} from "@welshman/lib" import { matchFilters, getIdFilters, @@ -251,7 +251,7 @@ export const getEventsByIdForUrl = ({ includeDeleted, }: EventsByIdForUrlOptions) => { const initialIds = Array.from(tracker.getIds(url)) - const initialFilters = filters.map(assoc("ids", initialIds)) + const initialFilters = filters.map(filter => ({ids: initialIds, ...filter})) const eventsById: EventsById = new Map() for (const event of repository.query(initialFilters, {includeDeleted})) {