mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
feat: add aggregations
This commit is contained in:
@@ -62,6 +62,8 @@
|
||||
if (m.userEmail !== $user.email) return m.userEmail;
|
||||
})
|
||||
?.filter(Boolean) ?? [];
|
||||
let totalExtraMembers = data?.aggregationList;
|
||||
$: console.log(totalExtraMembers);
|
||||
let couponData: Partial<Coupon> = {
|
||||
code: null,
|
||||
status: null,
|
||||
@@ -264,16 +266,6 @@
|
||||
For more details on our plans, visit our
|
||||
<Button href="https://appwrite.io/pricing" external link>pricing page</Button>.
|
||||
</p>
|
||||
{#if anyOrgFree && billingPlan !== BillingPlan.FREE}
|
||||
<Alert type="warning" class="u-margin-block-16">
|
||||
You are limited to one {tierToPlan(BillingPlan.FREE).name} organization per account.
|
||||
Consider upgrading or deleting <Button
|
||||
link
|
||||
href={`${base}/console/organization-${anyOrgFree.$id}`}
|
||||
>{anyOrgFree.name}</Button
|
||||
>.
|
||||
</Alert>
|
||||
{/if}
|
||||
<PlanSelection
|
||||
bind:billingPlan
|
||||
anyOrgFree={!!anyOrgFree}
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
import { Dependencies } from '$lib/constants';
|
||||
import { sdk } from '$lib/stores/sdk.js';
|
||||
import { Query } from '@appwrite.io/console';
|
||||
|
||||
export const load = async ({ depends, parent }) => {
|
||||
const { members } = await parent();
|
||||
depends(Dependencies.ORGANIZATION);
|
||||
const { members, organization } = await parent();
|
||||
|
||||
depends(Dependencies.ORGANIZATION);
|
||||
return {
|
||||
members
|
||||
members,
|
||||
aggregationList: await sdk.forConsole.billing.listAggregation(organization?.$id, [
|
||||
Query.orderDesc('$createdAt')
|
||||
])
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user