diff --git a/acp.js b/acp.js index 0abdce94..3ca4d419 100644 --- a/acp.js +++ b/acp.js @@ -93,7 +93,7 @@ module.exports = { ActionLog.record(user.ip, user.name, "acp-set-rank", [data]); var query = Database.createQuery( "UPDATE registrations SET global_rank=? WHERE uname=?", - [data.name, data.rank] + [data.rank, data.name] ); var res = db.querySync(query);