mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 23:00:30 +08:00
Go: add API mode check in file system command (#16022)
### What problem does this PR solve? As title. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -328,7 +328,7 @@ func (c *CLI) ExecuteUserCommand(cmd *Command) (ResponseIf, error) {
|
||||
case "save_config_command":
|
||||
return c.SaveServerConfig(cmd)
|
||||
case "file_system_command":
|
||||
return c.executeFilesystem(cmd)
|
||||
return c.ExecuteFilesystemCommand(cmd)
|
||||
default:
|
||||
return nil, fmt.Errorf("command '%s' would be executed with API", cmd.Type)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user