MM-47403: Populate the productHooks field (#21280)

We need to do this to pass the hooked events
to the products.

https://mattermost.atlassian.net/browse/MM-47403

```release-note
NONE
```
This commit is contained in:
Agniva De Sarker
2022-10-07 13:07:06 +02:00
committed by GitHub
parent e99eba33ff
commit 56fd8bf5cc
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -406,6 +406,7 @@ type hooksAdapter struct {
func newAdapter(productHooks any) (*hooksAdapter, error) {
a := &hooksAdapter{
implemented: make(map[int]struct{}),
productHooks: productHooks,
}
var tt reflect.Type
ft := reflect.TypeOf(productHooks)
+2 -1
View File
@@ -121,7 +121,8 @@ type hooksAdapter struct {
func newAdapter(productHooks any) (*hooksAdapter, error) {
a := &hooksAdapter{
implemented: make(map[int]struct{}),
implemented: make(map[int]struct{}),
productHooks: productHooks,
}
var tt reflect.Type
ft := reflect.TypeOf(productHooks)