diff --git a/src/queries.ts b/src/queries.ts index ef3b76b..03bd2f0 100644 --- a/src/queries.ts +++ b/src/queries.ts @@ -31,7 +31,7 @@ const getEvent = async ( } return await optimizer.query([filter], { limit: 1, signal }) - .then(([event]) => hydrateEvents({ events: [event], relations, storage: optimizer, signal })) + .then((events) => hydrateEvents({ events, relations, storage: optimizer, signal })) .then(([event]) => event); };