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:
commit
0ae4c21876
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue