Skip to content

Commit

Permalink
Simplified update pay_set.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Mar 8, 2021
1 parent 8c14f93 commit a07592e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_scripts/pay_set.js
Expand Up @@ -13,7 +13,7 @@ require("../init_mini.js").init(function() {
const pay = global.support.decimalToCoin(argv.pay ? argv.pay : 0.003);
async.waterfall([
function (callback) {
global.mysql.query("UPDATE users SET payout_threshold=? WHERE user=?", [pay, user]).then(function (rows) {
global.mysql.query("UPDATE users SET payout_threshold=? WHERE username=?", [pay, user]).then(function (rows) {
console.log("UPDATE users SET payout_threshold=" + pay + " WHERE username=" + user);
callback();
});
Expand Down

0 comments on commit a07592e

Please sign in to comment.