mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: lint errors
This commit is contained in:
1 parent
c0618e412e
commit
fde80f4c9d
4 files changed
+9
-10
No files matched your search
@@ -37,15 +37,14 @@
|
||||
import { isSmallViewport } from '$lib/stores/viewport';
|
||||
import { isCloud } from '$lib/system';
|
||||
import { regions as regionsStore } from '$lib/stores/organization';
|
||||
import type { Organization } from '$lib/stores/organization';
|
||||
import type { Plan } from '$lib/sdk/billing';
|
||||
|
||||
// props
|
||||
interface Props {
|
||||
projectsToArchive: Models.Project[];
|
||||
organization: Models.Organization;
|
||||
currentPlan: {
|
||||
projects: number;
|
||||
[key: string]: any;
|
||||
};
|
||||
organization: Organization;
|
||||
currentPlan: Plan;
|
||||
}
|
||||
|
||||
let { projectsToArchive, organization, currentPlan }: Props = $props();
|
||||
@@ -131,7 +130,7 @@
|
||||
} catch (error) {
|
||||
const msg =
|
||||
error && typeof error === 'object' && 'message' in error
|
||||
? String((error as any).message)
|
||||
? String((error as { message: string }).message)
|
||||
: 'Failed to unarchive project';
|
||||
addNotification({ type: 'error', message: msg });
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
type Props = {
|
||||
organization: Organization;
|
||||
projects?: Models.Project[];
|
||||
members?: any[];
|
||||
members?: Models.Membership[];
|
||||
storageUsage?: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@
|
||||
<!-- Archived Projects Section -->
|
||||
<ArchiveProject
|
||||
{projectsToArchive}
|
||||
organization={data.organization as any}
|
||||
organization={data.organization}
|
||||
currentPlan={$currentPlan} />
|
||||
</Container>
|
||||
<CreateOrganization bind:show={addOrganization} />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { AggregationTeam, Invoice } from '$lib/sdk/billing';
|
||||
import type { AggregationTeam, Invoice, InvoiceUsage } from '$lib/sdk/billing';
|
||||
import { accumulateUsage } from '$lib/sdk/usage';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { Query } from '@appwrite.io/console';
|
||||
@@ -46,7 +46,7 @@ export const load: PageLoad = async ({ params, parent }) => {
|
||||
|
||||
if (projectSpecificData) {
|
||||
const executionsResource = projectSpecificData.resources?.find?.(
|
||||
(r: any) => r.resourceId === 'executions'
|
||||
(r: InvoiceUsage) => r.resourceId === 'executions'
|
||||
);
|
||||
if (executionsResource) {
|
||||
usage.executionsTotal = executionsResource.value || usage.executionsTotal;
|
||||
|
||||
Reference in new issue
Block a user