Skip to content

Commit 41ebdf3

Browse files
committed
fix: use findFirst instead of findUnique for org lookup
1 parent 9eaae9d commit 41ebdf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/routes/admin.api.orgs.$orgId.feature-flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
2323
const { orgId } = ParamsSchema.parse(params);
2424

2525
const [organization, globalFlags] = await Promise.all([
26-
prisma.organization.findUnique({
26+
prisma.organization.findFirst({
2727
where: { id: orgId },
2828
select: {
2929
id: true,

0 commit comments

Comments
 (0)