每日签到功能

This commit is contained in:
undefined committed 2020-08-13 13:03:33 +08:00
1 parent 06847d9b19
commit 9887deca6a
7 files changed
+52 -11

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ class DomainRankHandler extends Handler {
@param('page', Types.PositiveInt, true)
async get(domainId: string, page = 1) {
const [dudocs, upcount, ucount] = await paginate(
domain.getMultiInDomain(domainId).sort({ rp: -1 }),
domain.getMultiUserInDomain(domainId).sort({ rp: -1 }),
page,
100,
);
@@ -84,7 +84,7 @@ class DomainUserHandler extends ManageHandler {
async get({ domainId }) {
const rudocs = {};
const [dudocs, roles] = await Promise.all([
domain.getMultiInDomain(domainId, {
domain.getMultiUserInDomain(domainId, {
$and: [
{ role: { $ne: 'default' } },
{ role: { $ne: null } },