From f8ad395155febccbf2ee9a3f708831d2ae81d31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=A4stle?= Date: Thu, 23 Jan 2025 10:25:15 +0100 Subject: [PATCH] debug nats update --- dao/nats.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dao/nats.go b/dao/nats.go index 74ee7bb..c64d38b 100644 --- a/dao/nats.go +++ b/dao/nats.go @@ -2,6 +2,7 @@ package dao import ( "context" + "fmt" "log" "pool-backend/models" @@ -35,6 +36,8 @@ func PublishRoles() { } func SubscribeUserUpdate(m *models.UserUpdate) { + fmt.Printf("Updated User:\n") + fmt.Printf("%v\n", m) result := new(models.User) if err := UserCollection.UpdateOne( context.Background(),