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 16:37:06 +05:30
committed by GitHub
parent e99eba33ff
commit 56fd8bf5cc
2 changed files with 3 additions and 1 deletions

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)