Skip to content

Commit 08999ec

Browse files
committed
style: apply oxfmt to management API routes
1 parent 3656e0e commit 08999ec

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

apps/webapp/app/routes/api.v1.orgs.$orgParam.members.$memberId.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
5858
where: { organizationId: organization.id },
5959
});
6060
if (memberCount <= 1) {
61-
return json(
62-
{ error: "Cannot remove the last member of an organization" },
63-
{ status: 400 }
64-
);
61+
return json({ error: "Cannot remove the last member of an organization" }, { status: 400 });
6562
}
6663

6764
const removed = await removeTeamMember({

apps/webapp/app/routes/api.v1.orgs.$orgParam.projects.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ export async function action({ request, params }: ActionFunctionArgs) {
122122
// Derive from the stored id rather than assuming new projects are unset,
123123
// so this stays correct if project creation ever inherits a default region.
124124
const defaultRegion = project.defaultWorkerGroupId
125-
? (
125+
? ((
126126
await prisma.workerInstanceGroup.findFirst({
127127
where: { id: project.defaultWorkerGroupId },
128128
select: { name: true },
129129
})
130-
)?.name ?? null
130+
)?.name ?? null)
131131
: null;
132132

133133
const result: GetProjectResponseBody = {

0 commit comments

Comments
 (0)