Skip to content

Commit

Permalink
Merge pull request dubinc#788 from dubinc/api-changes
Browse files Browse the repository at this point in the history
Api changes
  • Loading branch information
steven-tey authored Apr 17, 2024
2 parents a59e95a + 346adab commit 4bcb12a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/web/app/api/workspaces/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export const POST = withSession(async ({ req, session }) => {

const response = {
...projectResponse,
id: `ws_${projectResponse.id}`,
domains: projectResponse.domains.map(({ slug, primary }) => ({
slug,
primary,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/zod/schemas/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export const createLinkBodySchema = z.object({
),
});

export const updateLinkBodySchema = createLinkBodySchema.partial();
export const updateLinkBodySchema = createLinkBodySchema.partial().optional();

export const bulkCreateLinksBodySchema = z
.array(createLinkBodySchema)
Expand Down

0 comments on commit 4bcb12a

Please sign in to comment.