projectId -> projectID

This commit is contained in:
James Long
2026-02-26 12:30:47 -05:00
parent 7a8a32fc3c
commit 9398303767
3 changed files with 7 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ export namespace Workspace {
.object({
id: Identifier.schema("workspace"),
branch: z.string().nullable(),
projectId: z.string(),
projectID: z.string(),
config: Config,
})
.meta({
@@ -43,7 +43,7 @@ export namespace Workspace {
return {
id: row.id,
branch: row.branch,
projectId: row.project_id,
projectID: row.project_id,
config: row.config,
}
}
@@ -51,7 +51,7 @@ export namespace Workspace {
export const create = fn(
z.object({
id: Identifier.schema("workspace").optional(),
projectId: Info.shape.projectId,
projectID: Info.shape.projectID,
branch: Info.shape.branch,
config: Info.shape.config,
}),
@@ -62,7 +62,7 @@ export namespace Workspace {
const info: Info = {
id,
projectId: input.projectId,
projectID: input.projectID,
branch: input.branch,
config,
}
@@ -75,7 +75,7 @@ export namespace Workspace {
.values({
id: info.id,
branch: info.branch,
project_id: info.projectId,
project_id: info.projectID,
config: info.config,
})
.run()

View File

@@ -44,7 +44,7 @@ export const WorkspaceRoutes = lazy(() =>
const body = c.req.valid("json")
const workspace = await Workspace.create({
id,
projectId: Instance.project.id,
projectID: Instance.project.id,
branch: body.branch,
config: body.config,
})

View File

@@ -1646,7 +1646,7 @@ export type WorktreeCreateInput = {
export type Workspace = {
id: string
branch: string | null
projectId: string
projectID: string
config: {
directory: string
type: "worktree"