File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " deco-cli" ,
3
- "version" : " 0.18.0 " ,
3
+ "version" : " 0.18.1 " ,
4
4
"description" : " CLI for managing decocms.com apps & projects" ,
5
5
"license" : " MIT" ,
6
6
"author" : " Deco team" ,
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ const readConfigFile = async (cwd?: string) => {
128
128
} ;
129
129
130
130
const DECO_CHAT_WORKFLOW_BINDING = {
131
- name : "DECO_CHAT_WORKFLOW_DO " ,
131
+ name : "DECO_WORKFLOW_DO " ,
132
132
class_name : "Workflow" ,
133
133
} ;
134
134
@@ -159,7 +159,9 @@ export const writeWranglerConfig = async (
159
159
160
160
export const addWorkflowDO = async ( ) => {
161
161
const wranglerConfig = await readWranglerConfig ( process . cwd ( ) ) ;
162
- const currentDOs = wranglerConfig . durable_objects ?. bindings ?? [ ] ;
162
+ const currentDOs = ( wranglerConfig . durable_objects ?. bindings ?? [ ] ) . filter (
163
+ ( b ) => b . name !== "DECO_CHAT_WORKFLOW_DO" ,
164
+ ) ;
163
165
const isWorkflowMigration = ( m : { new_classes ?: string [ ] } ) =>
164
166
m . new_classes ?. includes ( DECO_CHAT_WORKFLOW_BINDING . class_name ) ;
165
167
You can’t perform that action at this time.
0 commit comments