perf: use promise.all in /apps/installed (#23146)

This commit is contained in:
Benny Joo authored and GitHub committed 2025-08-18 10:11:22 +05:30
1 parent 77369a13f1
commit a19ccab16a
1 file changed
+7 -5
@@ -45,11 +45,13 @@ const InstalledAppsWrapper = async ({ params }: PageProps) => {
createRouterCaller(appsRouter),
]);
const connectedCalendars = await calendarsCaller.connectedCalendars();
const installedCalendars = await appsCaller.integrations({
variant: "calendar",
onlyInstalled: true,
});
const [connectedCalendars, installedCalendars] = await Promise.all([
calendarsCaller.connectedCalendars(),
appsCaller.integrations({
variant: "calendar",
onlyInstalled: true,
}),
]);
return (
<InstalledApps