Skip to content

Commit

Permalink
fix the confused the error log and replace userId to senderId
Browse files Browse the repository at this point in the history
  • Loading branch information
xinatcg committed Jun 5, 2024
1 parent db374f9 commit e372686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/runtime_javascript_nakama.go
Original file line number Diff line number Diff line change
Expand Up @@ -3760,11 +3760,11 @@ func (n *runtimeJavascriptNakamaModule) notificationsSend(r *goja.Runtime) func(
if _, ok := notificationObj["senderId"]; ok {
senderIDStr, ok := notificationObj["senderId"].(string)
if !ok {
panic(r.NewTypeError("expects 'userId' value to be a string"))
panic(r.NewTypeError("expects 'senderId' value to be a string"))
}
uid, err := uuid.FromString(senderIDStr)
if err != nil {
panic(r.NewTypeError("expects 'userId' value to be a valid id"))
panic(r.NewTypeError("expects 'senderId' value to be a valid id"))
}
senderID = uid
}
Expand Down

0 comments on commit e372686

Please sign in to comment.