Skip to content

Commit

Permalink
Correctly return group user results in Lua runtime listing operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyro committed Jan 22, 2019
1 parent 5527c6a commit 07e315d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to this project are documented below.
The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org).

## [Unreleased]

### Fixed
- Correctly return group user results in Lua runtime listing operation.

## [2.3.2] - 2019-01-17
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions server/runtime_lua_nakama.go
Original file line number Diff line number Diff line change
Expand Up @@ -4759,8 +4759,8 @@ func (n *RuntimeLuaNakamaModule) groupUsersList(l *lua.LState) int {
ut.RawSetString("metadata", metadataTable)

gt := l.CreateTable(0, 2)
ut.RawSetString("user", ut)
ut.RawSetString("state", lua.LNumber(ug.State.Value))
gt.RawSetString("user", ut)
gt.RawSetString("state", lua.LNumber(ug.State.Value))

groupUsers.RawSetInt(i+1, gt)
}
Expand Down

0 comments on commit 07e315d

Please sign in to comment.