fix(queries): event deconstruct inside getEvent

This commit is contained in:
P. Reis 2024-04-04 17:27:52 -03:00
parent f7c39912c2
commit d688e64219
1 changed files with 1 additions and 1 deletions

View File

@ -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);
};