chore: minor
This commit is contained in:
parent
dc143a6dc7
commit
6fdb83fc14
10 changed files with 24 additions and 29 deletions
|
|
@ -2,6 +2,7 @@ package messenger
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"maps"
|
||||
"reflect"
|
||||
"strings"
|
||||
"text/template"
|
||||
|
|
@ -105,9 +106,7 @@ func (h *Hub) apply(ev Event, tmpl string) (string, error) {
|
|||
}
|
||||
|
||||
// event-specific attributes override cache values
|
||||
for k, v := range ev.Attributes {
|
||||
attr[k] = v
|
||||
}
|
||||
maps.Copy(attr, ev.Attributes)
|
||||
|
||||
return util.ReplaceFormatted(tmpl, attr)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue