diff --git a/packages/server/src/Interface.ts b/packages/server/src/Interface.ts index b4783f76..ab55e87a 100644 --- a/packages/server/src/Interface.ts +++ b/packages/server/src/Interface.ts @@ -9,9 +9,10 @@ export interface IChatFlow { id: string name: string flowData: string - isPublic: boolean + deployed: boolean updatedDate: Date createdDate: Date + isPublic?: boolean apikeyid?: string chatbotConfig?: string } diff --git a/packages/server/src/entity/ChatFlow.ts b/packages/server/src/entity/ChatFlow.ts index 400e0517..0e1e8698 100644 --- a/packages/server/src/entity/ChatFlow.ts +++ b/packages/server/src/entity/ChatFlow.ts @@ -14,7 +14,10 @@ export class ChatFlow implements IChatFlow { flowData: string @Column() - isPublic: boolean + deployed: boolean + + @Column({ nullable: true }) + isPublic?: boolean @Column({ nullable: true }) apikeyid?: string diff --git a/packages/ui/src/views/canvas/index.js b/packages/ui/src/views/canvas/index.js index 03098963..1c6d610f 100644 --- a/packages/ui/src/views/canvas/index.js +++ b/packages/ui/src/views/canvas/index.js @@ -201,6 +201,7 @@ const Canvas = () => { if (!chatflow.id) { const newChatflowBody = { name: chatflowName, + deployed: false, isPublic: false, flowData }