From d32e6f98393cdedadd65ffefa79df2777dd24764 Mon Sep 17 00:00:00 2001 From: SSHari Date: Wed, 19 Jul 2023 19:05:37 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20filter=20organization=20?= =?UTF-8?q?>=20project=20>=20jobs=20to=20internal=3Dfalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/webapp/app/models/organization.server.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/webapp/app/models/organization.server.ts b/apps/webapp/app/models/organization.server.ts index 028c022ea..56b060950 100644 --- a/apps/webapp/app/models/organization.server.ts +++ b/apps/webapp/app/models/organization.server.ts @@ -46,7 +46,11 @@ export function getOrganizations({ userId }: { userId: User["id"] }) { include: { _count: { select: { - jobs: true, + jobs: { + where: { + internal: false, + }, + }, }, }, },