Skip to content

Commit

Permalink
fix(server/mysql): reorder saveStash parameters
Browse files Browse the repository at this point in the history
Parameters changed in 184d6cb.
Resolves #1509
  • Loading branch information
thelindat committed Oct 21, 2023
1 parent 1604e92 commit 8b8c820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mysql/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function db.savePlayer(owner, inventory)
end

function db.saveStash(owner, dbId, inventory)
return MySQL.prepare(Query.UPSERT_STASH, { owner and tostring(owner) or '', dbId, inventory })
return MySQL.prepare(Query.UPSERT_STASH, { inventory, owner and tostring(owner) or '', dbId })
end

function db.loadStash(owner, name)
Expand Down

1 comment on commit 8b8c820

@trustiestbullet
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not able to open inventory after replacing the line.

Please sign in to comment.