Revert "chore: refresh models when getting object_info"
This reverts commit 67f25b2353cde0c318f0450d5c3222091a988625.
This commit is contained in:
		
							parent
							
								
									67f25b2353
								
							
						
					
					
						commit
						411db66d81
					
				@ -1999,25 +1999,6 @@ api.fetchApi = async (route, options) => {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (route.startsWith("/object_info") && ext.native_mode) {
 | 
					 | 
				
			||||||
    const info = await getSelectedWorkflowInfo();
 | 
					 | 
				
			||||||
    console.log("info, ", info);  
 | 
					 | 
				
			||||||
    if (info) {
 | 
					 | 
				
			||||||
      const data = {
 | 
					 | 
				
			||||||
        refresh_private: true,
 | 
					 | 
				
			||||||
        refresh_public: true
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
      await fetch("/comfyui-deploy/refresh-models", {
 | 
					 | 
				
			||||||
        method: "POST",
 | 
					 | 
				
			||||||
        headers: {
 | 
					 | 
				
			||||||
          Authorization: `Bearer ${info.cd_token}`,
 | 
					 | 
				
			||||||
          "Content-Type": "application/json",
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        body: JSON.stringify(data),
 | 
					 | 
				
			||||||
      });
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  return await orginal_fetch_api.call(api, route, options);
 | 
					  return await orginal_fetch_api.call(api, route, options);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user