Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Sep 30, 2024
1 parent 73a467f commit 706412c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/models/nats_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ func (m *NatsModel) RenewPNMToken(roomId, userId, token string) {
// as renew request is coming from nats, so it should be secure
token, err := m.authModel.RenewPNMToken(token, false)
if err != nil {
log.Errorln(err)
log.Errorln(fmt.Errorf("error renewing pnm token for %s; roomId: %s; msg: %s", userId, roomId, err.Error()))
return
}

err = m.natsService.BroadcastSystemEventToRoom(plugnmeet.NatsMsgServerToClientEvents_RESP_RENEW_PNM_TOKEN, roomId, token, &userId)
if err != nil {
log.Errorln(fmt.Errorf("error renewing pnm token for %s; roomId: %s; msg: %s", userId, roomId, err.Error()))
log.Errorln(fmt.Errorf("error sending RESP_RENEW_PNM_TOKEN event for %s; roomId: %s; msg: %s", userId, roomId, err.Error()))
}
}

Expand Down

0 comments on commit 706412c

Please sign in to comment.