Compare commits

2 Commits

Author SHA1 Message Date
3a243546e9 pubSub.go aktualisiert 2025-08-22 14:32:20 +02:00
d6d5466597 models/data.go aktualisiert 2025-08-22 14:31:53 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package models package models
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)
} }
} }
} }