Browse Source

fix bugs

dev
巴林闲侠 1 year ago
parent
commit
f2cb86ff59
  1. 8
      api/app/lib/controllers/report/index.js

8
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, // 限制返回的记录数
}) : []

Loading…
Cancel
Save