fix: missing json pointer address

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2021-07-25 15:33:01 +08:00
parent f4fc2a5e7c
commit 9bb618d506
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ func CheckPushConf(cfg config.ConfYaml) error {
func SendNotification(req queue.QueuedMessage) { func SendNotification(req queue.QueuedMessage) {
v, ok := req.(*PushNotification) v, ok := req.(*PushNotification)
if !ok { if !ok {
if err := json.Unmarshal(req.Bytes(), v); err != nil { if err := json.Unmarshal(req.Bytes(), &v); err != nil {
return return
} }
} }