mirror of https://github.com/calzoneman/sync.git
Fix ACP set rank
This commit is contained in:
parent
dc7eeed360
commit
0f40ac6243
2
acp.js
2
acp.js
|
@ -93,7 +93,7 @@ module.exports = {
|
||||||
ActionLog.record(user.ip, user.name, "acp-set-rank", [data]);
|
ActionLog.record(user.ip, user.name, "acp-set-rank", [data]);
|
||||||
var query = Database.createQuery(
|
var query = Database.createQuery(
|
||||||
"UPDATE registrations SET global_rank=? WHERE uname=?",
|
"UPDATE registrations SET global_rank=? WHERE uname=?",
|
||||||
[data.name, data.rank]
|
[data.rank, data.name]
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = db.querySync(query);
|
var res = db.querySync(query);
|
||||||
|
|
Loading…
Reference in New Issue