mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: await
This commit is contained in:
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
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user