Skip to content

Commit 63fffe2

Browse files
committed
Changed assertion from string to table
1 parent dd0e9b2 commit 63fffe2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nakama/socket.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ end
574574
-- @param callback
575575
function M.status_follow(socket, user_ids, usernames, callback)
576576
assert(socket)
577-
assert(user_ids == nil or _G.type(user_ids) == 'string')
578-
assert(usernames == nil or _G.type(usernames) == 'string')
577+
assert(user_ids == nil or _G.type(user_ids) == 'table')
578+
assert(usernames == nil or _G.type(usernames) == 'table')
579579
socket.cid = socket.cid + 1
580580
local message = {
581581
cid = tostring(socket.cid),
@@ -593,7 +593,7 @@ end
593593
-- @param callback
594594
function M.status_unfollow(socket, user_ids, callback)
595595
assert(socket)
596-
assert(user_ids == nil or _G.type(user_ids) == 'string')
596+
assert(user_ids == nil or _G.type(user_ids) == 'table')
597597
local message = {
598598
status_unfollow = {
599599
user_ids = user_ids,

0 commit comments

Comments
 (0)