mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-12-01 11:43:58 +01:00
That was bad.
This commit is contained in:
+1
-1
@@ -505,7 +505,7 @@ secureRoutes.post('/changePayoutThreshold', function (req, res) {
|
|||||||
}
|
}
|
||||||
threshold = global.support.decimalToCoin(threshold);
|
threshold = global.support.decimalToCoin(threshold);
|
||||||
global.mysql.query("UPDATE users SET payout_threshold = ? WHERE id = ?", [threshold, req.decoded.id]).then(function () {
|
global.mysql.query("UPDATE users SET payout_threshold = ? WHERE id = ?", [threshold, req.decoded.id]).then(function () {
|
||||||
return res.json({'msg': 'Threshold updated, set to: ' + global.config.support.coinToDecimal(threshold)});
|
return res.json({'msg': 'Threshold updated, set to: ' + global.support.coinToDecimal(threshold)});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user