Skip to content

Commit 73f69c5

Browse files
committed
fix status check
1 parent 878975a commit 73f69c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/routes/(console)/project-[region]-[project]

src/routes/(console)/project-[region]-[project]/+layout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { get } from 'svelte/store';
88
import { headerAlert } from '$lib/stores/headerAlert';
99
import PaymentFailed from '$lib/components/billing/alerts/paymentFailed.svelte';
1010
import { loadAvailableRegions } from '$routes/(console)/regions';
11-
import { type Models, Platform } from '@appwrite.io/console';
11+
import { type Models, Platform, Status } from '@appwrite.io/console';
1212
import { redirect } from '@sveltejs/kit';
1313
import { resolve } from '$app/paths';
1414
import { generateFingerprintToken } from '$lib/helpers/fingerprint';
@@ -19,7 +19,7 @@ export const load: LayoutLoad = async ({ params, depends, parent }) => {
1919
depends(Dependencies.PROJECT);
2020

2121
const project = await sdk.forConsole.projects.get({ projectId: params.project });
22-
if (project.status !== 'active') {
22+
if (project.status !== 'active' && project.status !== 'paused') {
2323
// project isn't active, redirect back to organizations page
2424
redirect(
2525
303,

0 commit comments

Comments
 (0)