Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/client/src/server/api/routers/project/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const projectRouter = createTRPCRouter({
const newFrame = createDefaultFrame(newCanvas.id, input.project.sandboxUrl);
await tx.insert(frames).values(newFrame);

// 6. Create the creation request
// 5. Create the creation request
if (input.creationData) {
await tx.insert(projectCreateRequests).values({
...input.creationData,
Expand Down
3 changes: 2 additions & 1 deletion packages/db/src/schema/project/chat/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { createInsertSchema, createUpdateSchema } from "drizzle-zod";
import { conversations } from "./conversation";

export const CONVERSATION_MESSAGe_RELATION_NAME = 'conversation_messages';
export const messageRole = pgEnum("role", ChatMessageRole);

export const messageRole = pgEnum("message_role", ChatMessageRole);

export const messages = pgTable("messages", {
id: uuid("id").primaryKey().defaultRandom(),
Expand Down