mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Identify task (#1839)
* Add identify task * Change type naming * Debounce folder select text input * Add generic slice comparison function
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
|
||||
"github.com/stashapp/stash/pkg/logger"
|
||||
"github.com/stashapp/stash/pkg/manager/config"
|
||||
@@ -179,6 +180,15 @@ func (c Cache) ExecutePostHooks(ctx context.Context, id int, hookType HookTrigge
|
||||
}
|
||||
}
|
||||
|
||||
func (c Cache) ExecuteSceneUpdatePostHooks(ctx context.Context, input models.SceneUpdateInput, inputFields []string) {
|
||||
id, err := strconv.Atoi(input.ID)
|
||||
if err != nil {
|
||||
logger.Errorf("error converting id in SceneUpdatePostHooks: %v", err)
|
||||
return
|
||||
}
|
||||
c.ExecutePostHooks(ctx, id, SceneUpdatePost, input, inputFields)
|
||||
}
|
||||
|
||||
func (c Cache) executePostHooks(ctx context.Context, hookType HookTriggerEnum, hookContext common.HookContext) error {
|
||||
visitedPlugins := session.GetVisitedPlugins(ctx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user