mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Plugin API improvements (#4603)
* Accept plain map for runPluginTask * Support running plugin task without task name * Add interface to run plugin operations * Update RunPluginTask client mutation
This commit is contained in:
@@ -45,7 +45,9 @@ func (t *jsPluginTask) makeOutput(o otto.Value) {
|
||||
return
|
||||
}
|
||||
|
||||
t.result.Output, _ = asObj.Get("Output")
|
||||
output, _ := asObj.Get("Output")
|
||||
t.result.Output, _ = output.Export()
|
||||
|
||||
err, _ := asObj.Get("Error")
|
||||
if !err.IsUndefined() {
|
||||
errStr := err.String()
|
||||
|
||||
Reference in New Issue
Block a user