This commit is contained in:
Adrian Zuercher
2025-08-22 14:35:04 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ package models
import "encoding/json" import "encoding/json"
type Data struct { type Data struct {
Action string `json:"action"` Action string `json:"action,omitempty"`
Topic string `json:"topic"` Topic string `json:"topic"`
Data any `json:"data"` Data any `json:"data"`
} }

View File

@@ -53,7 +53,7 @@ func (ps *Pubsub) worker() {
func(c func(any), d any) { func(c func(any), d any) {
defer func() { recover() }() defer func() { recover() }()
c(d) c(d)
}(cb, job.Data) }(cb, job)
} }
} }
} }