We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c6c529 commit 48bc472Copy full SHA for 48bc472
modules/robots/index.js
@@ -19,7 +19,7 @@ const getRobots = async (req, res) => {
19
token.validateToken(req.query.akey, req.query.token, async (err, valid) => {
20
if (!err) {
21
if (valid) {
22
- const robots = await query('SELECT * FROM robots ORDER BY `order`');
+ const robots = await query('SELECT * FROM robots ORDER BY RAND()');
23
const boughtRobots = await query('SELECT * FROM robots_transactions WHERE akey=?', [req.query.akey]);
24
25
res.json(robots.map((robot) => {
0 commit comments