Unverified Commit 0fd5e92a authored by Simon Esposito's avatar Simon Esposito Committed by GitHub
Browse files

Add user id to JS runtime wallet updates results (#917)

parent 13e56e78
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- More exact usage of limit parameter in leaderboard record listings.
- Include subscriptions in all data deletion from the developer console.
- Correct return format of JavaScript runtime account export function.
- Add user id to JS runtime wallet operations returned results.

## [3.13.1] - 2022-08-18
### Fixed
+3 −0
Original line number Diff line number Diff line
@@ -3903,6 +3903,7 @@ func (n *runtimeJavascriptNakamaModule) walletUpdate(r *goja.Runtime) func(goja.
		return r.ToValue(map[string]interface{}{
			"updated":  results[0].Updated,
			"previous": results[0].Previous,
			"userId":   results[0].UserID,
		})
	}
}
@@ -3994,6 +3995,7 @@ func (n *runtimeJavascriptNakamaModule) walletsUpdate(r *goja.Runtime) func(goja
				map[string]interface{}{
					"updated":  r.Updated,
					"previous": r.Previous,
					"userId":   r.UserID,
				},
			)
		}
@@ -4830,6 +4832,7 @@ func (n *runtimeJavascriptNakamaModule) multiUpdate(r *goja.Runtime) func(goja.F
				map[string]interface{}{
					"updated":  r.Updated,
					"previous": r.Previous,
					"userId":   r.UserID,
				},
			)
		}