fix: await

This commit is contained in:
Arman committed 2024-05-08 14:11:30 +02:00
1 parent d94678563d
commit 0bfa3a59c6
1 file changed
+4 -3
@@ -36,9 +36,10 @@ export const load: PageLoad = async ({ params, parent }) => {
endDate = currentInvoice.to;
}
const [invoices, usage] = await Promise.all([
const [invoices, usage, organizationMembers] = await Promise.all([
sdk.forConsole.billing.listInvoices(org.$id, [Query.orderDesc('from')]),
sdk.forConsole.billing.listUsage(params.organization, startDate, endDate)
sdk.forConsole.billing.listUsage(params.organization, startDate, endDate),
sdk.forConsole.teams.listMemberships(params.organization)
]);
const queries: string[] = [];
@@ -59,6 +60,6 @@ export const load: PageLoad = async ({ params, parent }) => {
projectNames: projectNames.projects,
invoices,
currentInvoice,
organizationMembers: await sdk.forConsole.teams.listMemberships(params.organization)
organizationMembers
};
};