From f2cb86ff59db91e5a0710c10371a1e3038f3afc0 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Thu, 3 Aug 2023 01:28:47 +0800 Subject: [PATCH] fix bugs --- api/app/lib/controllers/report/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/app/lib/controllers/report/index.js b/api/app/lib/controllers/report/index.js index 5bb931bd..c79b692d 100644 --- a/api/app/lib/controllers/report/index.js +++ b/api/app/lib/controllers/report/index.js @@ -408,11 +408,11 @@ async function spotCheck (ctx) { where: { reportType: 'conserve', userId: { $in: findUsers }, - include: [{ - model: models.User, - attributes: ['name'] - }] }, + include: [{ + model: models.User, + attributes: ['name'] + }], order: sequelize.random(), // 随机排序 limit: checkCount, // 限制返回的记录数 }) : []