Skip to content

Commit

Permalink
debug nats update
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiKaestle committed Jan 23, 2025
1 parent 8ffe27c commit f8ad395
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dao/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package dao

import (
"context"
"fmt"
"log"
"pool-backend/models"

Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit f8ad395

Please sign in to comment.