mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Use post commit hook for post-create plugin hooks (#2920)
This commit is contained in:
@@ -200,8 +200,8 @@ func (c Cache) ExecutePostHooks(ctx context.Context, id int, hookType HookTrigge
|
||||
}
|
||||
}
|
||||
|
||||
func (c Cache) RegisterPostHooks(ctx context.Context, txnMgr txn.Manager, id int, hookType HookTriggerEnum, input interface{}, inputFields []string) {
|
||||
txnMgr.AddPostCommitHook(ctx, func(ctx context.Context) error {
|
||||
func (c Cache) RegisterPostHooks(ctx context.Context, id int, hookType HookTriggerEnum, input interface{}, inputFields []string) {
|
||||
txn.AddPostCommitHook(ctx, func(ctx context.Context) error {
|
||||
c.ExecutePostHooks(ctx, id, hookType, input, inputFields)
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user