mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-13 18:44:22 +01:00
Improve performance of /context endpoint
This commit is contained in:
@@ -247,7 +247,7 @@ const contextController: AppController = async (c) => {
|
||||
if (event) {
|
||||
const [ancestorEvents, descendantEvents] = await Promise.all([
|
||||
getAncestors(store, event),
|
||||
getDescendants(store, event.id),
|
||||
getDescendants(store, event),
|
||||
]);
|
||||
|
||||
await hydrateEvents({
|
||||
|
||||
Reference in New Issue
Block a user