Skip to content

Commit 831d28a

Browse files
committed
Use findFirst for the tags project lookup
1 parent 50d6d96 commit 831d28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/routes/resources.projects.$projectParam.runs.tags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
1212
const userId = await requireUserId(request);
1313
const { projectParam } = Params.parse(params);
1414

15-
const project = await $replica.project.findUnique({
15+
const project = await $replica.project.findFirst({
1616
where: { slug: projectParam, deletedAt: null, organization: { members: { some: { userId } } } },
1717
});
1818

0 commit comments

Comments
 (0)