add missing pointer

Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
Christian Richter
2025-09-02 16:12:02 +02:00
committed by Ralf Haferkamp
parent b815a6e0a1
commit ef920b040a

View File

@@ -1173,7 +1173,7 @@ func (g Graph) getUserStateFromNatsKeyValue(ctx context.Context, userID string)
}
userState := userstate.UserState{}
if err := json.Unmarshal(entry.Value(), userState); err != nil {
if err := json.Unmarshal(entry.Value(), &userState); err != nil {
logger.Error().Err(err).Str("userid", userID).Msg("error unmarshalling user state from nats key value store")
return userstate.UserState{
UserId: userID,