Merge branch 'fix-event-deconstruct' into 'main'

fix(queries): event deconstruct inside getEvent

See merge request soapbox-pub/ditto!131
This commit is contained in:
Alex Gleason 2024-04-04 20:31:35 +00:00
commit 0ae4c21876
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);
};