diff --git a/CHANGELOG.md b/CHANGELOG.md index be0fd94bf4a09279297742315e5041291dc2e414..1c0f82a2b33429f84754b3ca6de52ac70c8fe04e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr - Gracefully close Lua matches when call queue fills up. - Better handling for Lua runtime wallet update operation errors. - Fix handling of leaderboard record writes that do not need to update the database. +- Fix parsing edge case in TypeScript/JavaScript runtime storage delete operations. ## [3.9.0] - 2021-10-29 ### Added diff --git a/server/runtime_javascript_nakama.go b/server/runtime_javascript_nakama.go index ab64df923cb6ded24f9d244a60b5283e0dd552e5..b7bce33d060e0468bc195b7ca977785599262d41 100644 --- a/server/runtime_javascript_nakama.go +++ b/server/runtime_javascript_nakama.go @@ -3623,8 +3623,8 @@ func (n *runtimeJavascriptNakamaModule) storageDelete(r *goja.Runtime) func(goja objectID.Key = key } - if userID, ok := dataMap["userId"]; ok { - userIDStr, ok := userID.(string) + if uid, ok := dataMap["userId"]; ok { + userIDStr, ok := uid.(string) if !ok { panic(r.NewTypeError("expects 'userId' value to be a string")) }