This commit is contained in:
Damodar Lohani committed 2025-08-31 12:21:05 +00:00
1 parent 7b5e65dfc3
commit 6e23bb5bf5
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -12,11 +12,11 @@
import { abbreviateNumber } from '$lib/helpers/numbers';
import { formatNum } from '$lib/helpers/string';
import { onMount } from 'svelte';
import type { Aggregation } from '$lib/sdk/billing';
import { sdk } from '$lib/stores/sdk';
import { BillingPlan } from '$lib/constants';
import { Alert, Icon, Table, Tooltip } from '@appwrite.io/pink-svelte';
import { IconInfo } from '@appwrite.io/pink-icons-svelte';
import type { AggregationTeam } from '$lib/sdk/billing';
export let tier: Tier;
+2 -2
View File
@@ -14,7 +14,7 @@ import { cachedStore } from '$lib/helpers/cache';
import { type Size, sizeToBytes } from '$lib/helpers/sizeConvertion';
import type {
AddressesList,
Aggregation,
AggregationTeam,
Invoice,
InvoiceList,
PaymentList,
@@ -619,7 +619,7 @@ export const billingURL = derived(
export const hideBillingHeaderRoutes = ['/console/create-organization', '/console/account'];
export function calculateExcess(addon: Aggregation, plan: Plan) {
export function calculateExcess(addon: AggregationTeam, plan: Plan) {
return {
bandwidth: calculateResourceSurplus(addon.usageBandwidth, plan.bandwidth),
storage: calculateResourceSurplus(addon.usageStorage, plan.storage, 'GB'),