Changeset 0.32.0 (#206)

This commit is contained in:
2026-03-19 18:50:27 +00:00
parent 6668e546fe
commit b1266b0d7c
283 changed files with 2187 additions and 1055 deletions

View File

@@ -7,9 +7,9 @@ import (
"sync"
"time"
"git.gobha.me/xcaliber/chat-switchboard/events"
"git.gobha.me/xcaliber/chat-switchboard/models"
"git.gobha.me/xcaliber/chat-switchboard/store"
"chat-switchboard/events"
"chat-switchboard/models"
"chat-switchboard/store"
)
// ── Package-level singleton ─────────────────
@@ -103,7 +103,7 @@ func (s *Service) Notify(ctx context.Context, n *models.Notification) error {
if s.hub != nil {
payload, _ := json.Marshal(n)
s.hub.SendToUser(n.UserID, events.Event{
s.hub.PublishToUser(n.UserID, events.Event{
Label: "notification.new",
Payload: payload,
Ts: time.Now().UnixMilli(),