-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Init cay #138
fix: Init cay #138
Conversation
.onConflictDoUpdate({ | ||
target: [schema.system.workspaceId, schema.system.slug], | ||
set: { | ||
name: sql`excluded.name`, | ||
description: sql`excluded.description`, | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use the util builder I made?
) | ||
.then((rows) => rows.map(({ id }) => id)); | ||
|
||
const systemMap = new Map(systems.map((system) => [system.slug, system])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const systemMap = new Map(systems.map((system) => [system.slug, system])); | |
const systemMap = Object.fromEntires(systems.map((system) => [system.slug, system])); |
Is there a specific reason for maps?
}); | ||
}; | ||
|
||
export const POST = async (req: NextRequest) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are posts ment for upserts or patchs?
packages/validators/src/cac/index.ts
Outdated
@@ -2,12 +2,13 @@ import { z } from "zod"; | |||
|
|||
export const release = z.object({ | |||
name: z.string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name is also optional
No description provided.