Skip to content

Commit

Permalink
fix(server/mysql): inv save format error (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehbw committed Mar 13, 2024
1 parent 3bd6fa8 commit 9b3f052
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/mysql/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function db.saveInventories(players, trunks, gloveboxes, stashes, total)
pending -= 1

if resp then
shared.info(saveStr:format('players', countRows(resp), total[1], (os.nanotime() - start) / 1e6))
shared.info(saveStr:format(countRows(resp), total[1], 'players', (os.nanotime() - start) / 1e6))
end
end)
end
Expand All @@ -209,7 +209,7 @@ function db.saveInventories(players, trunks, gloveboxes, stashes, total)
pending -= 1

if resp then
shared.info(saveStr:format('trunks', countRows(resp), total[2], (os.nanotime() - start) / 1e6))
shared.info(saveStr:format(countRows(resp), total[2], 'trunks', (os.nanotime() - start) / 1e6))
end
end)
end
Expand All @@ -222,7 +222,7 @@ function db.saveInventories(players, trunks, gloveboxes, stashes, total)
pending -= 1

if resp then
shared.info(saveStr:format('gloveboxes', countRows(resp), total[3], (os.nanotime() - start) / 1e6))
shared.info(saveStr:format(countRows(resp), total[3], 'gloveboxes', (os.nanotime() - start) / 1e6))
end
end)
end
Expand All @@ -247,7 +247,7 @@ function db.saveInventories(players, trunks, gloveboxes, stashes, total)
affectedRows -= tonumber(resp.info:match('Duplicates: (%d+)'), 10) or 0
end

shared.info(saveStr:format('stashes', affectedRows, total[4], (os.nanotime() - start) / 1e6))
shared.info(saveStr:format(affectedRows, total[4], 'stashes', (os.nanotime() - start) / 1e6))
end
end)
else
Expand Down

0 comments on commit 9b3f052

Please sign in to comment.