Skip to content

Commit a19ccab

Browse files
authored
perf: use promise.all in /apps/installed (calcom#23146)
1 parent 77369a1 commit a19ccab

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

  • apps/web/app/(use-page-wrapper)/apps/installed/[category]

apps/web/app/(use-page-wrapper)/apps/installed/[category]/page.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ const InstalledAppsWrapper = async ({ params }: PageProps) => {
4545
createRouterCaller(appsRouter),
4646
]);
4747

48-
const connectedCalendars = await calendarsCaller.connectedCalendars();
49-
const installedCalendars = await appsCaller.integrations({
50-
variant: "calendar",
51-
onlyInstalled: true,
52-
});
48+
const [connectedCalendars, installedCalendars] = await Promise.all([
49+
calendarsCaller.connectedCalendars(),
50+
appsCaller.integrations({
51+
variant: "calendar",
52+
onlyInstalled: true,
53+
}),
54+
]);
5355

5456
return (
5557
<InstalledApps

0 commit comments

Comments
 (0)