Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tweak(server): prevent nil error on mysql res
  • Loading branch information
renzuzu committed Aug 12, 2021
1 parent 62ee43c commit bfd07bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion renzu_garage/server/server.lua
Expand Up @@ -100,7 +100,8 @@ end)

function MysqlGarage(plugin,type,query,var)
if type == 'fetchAll' and plugin == 'mysql-async' then
return MySQL.Sync.fetchAll(query, var)
local res = MySQL.Sync.fetchAll(query, var)
return res
end
if type == 'execute' and plugin == 'mysql-async' then
MySQL.Sync.execute(query,var)
Expand Down

0 comments on commit bfd07bc

Please sign in to comment.