Skip to content

Commit 48bc472

Browse files
committed
change robots to random order
1 parent 9c6c529 commit 48bc472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/robots/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getRobots = async (req, res) => {
1919
token.validateToken(req.query.akey, req.query.token, async (err, valid) => {
2020
if (!err) {
2121
if (valid) {
22-
const robots = await query('SELECT * FROM robots ORDER BY `order`');
22+
const robots = await query('SELECT * FROM robots ORDER BY RAND()');
2323
const boughtRobots = await query('SELECT * FROM robots_transactions WHERE akey=?', [req.query.akey]);
2424

2525
res.json(robots.map((robot) => {

0 commit comments

Comments
 (0)