fix: org deletion

This commit is contained in:
charles-gauthereau
2026-07-05 19:15:01 +02:00
parent 666d677349
commit 2ef7f7929d
2 changed files with 4 additions and 2 deletions
@@ -47,7 +47,9 @@ export default async function RoutePage(props: PageParams<{ slug: string }>) {
const organizationWithMembers = await db.query.organization.findFirst({
where: eq(drizzleDb.schemas.organization.id, organization.id),
with: {
projects: true,
projects: {
where: eq(drizzleDb.schemas.project.isArchived, false),
},
members: {
with: {
user: true,