Skip to content

Commit 9fe3800

Browse files
committed
fix nit
1 parent 0c10bda commit 9fe3800

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/webapp/app/presenters/v3/BranchesPresenter.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { checkBranchLimit } from "~/services/upsertBranch.server";
1111
import { devPresence } from "./DevPresence.server";
1212
import { sortEnvironments } from "~/utils/environmentSort";
1313
import {
14+
BranchableEnvironmentToken,
1415
type BranchableEnvironmentType,
1516
toBranchableEnvironmentType,
1617
} from "~/utils/branchableEnvironment";
@@ -103,7 +104,7 @@ export class BranchesPresenter {
103104
}: {
104105
userId: User["id"];
105106
projectSlug: Project["slug"];
106-
env: "preview" | "development";
107+
env: BranchableEnvironmentToken;
107108
} & Options) {
108109
const project = await this.#prismaClient.project.findFirst({
109110
select: {

apps/webapp/app/utils/branchableEnvironment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type BranchableEnvironmentType = Extract<
1313

1414
/**
1515
* The wire/form token for a branchable environment kind, as sent by the CLI and
16-
* dashboard forms (`"preview" | "development"`).
16+
* dashboard forms.
1717
*/
1818
export type BranchableEnvironmentToken = "preview" | "development";
1919

0 commit comments

Comments
 (0)