Merge branch 'bugfix' of http://git.legu.cc/qixin/HJ_Server into bugfix
This commit is contained in:
commit
945d406131
@ -5,11 +5,12 @@ import { PublicShared } from "../shared/public/public";
|
|||||||
|
|
||||||
|
|
||||||
class Path {
|
class Path {
|
||||||
|
|
||||||
async fun1(a: any) {
|
async fun1(a: any) {
|
||||||
let taskType = 2;
|
let taskType = 2;
|
||||||
// let users = await G.mongodb.collection('user').find({}).toArray();
|
let users = await G.mongodb.collection('user').find({}, {
|
||||||
let users = await G.mongodb.collection('user').find({ loginTime: { $gte: 1704643200 } }).toArray();
|
projection: {uid: 1}
|
||||||
|
}).toArray();
|
||||||
|
// let users = await G.mongodb.collection('user').find({ loginTime: { $gte: 1704643200 } }).toArray();
|
||||||
for (let i = 0; i < users.length; i++) {
|
for (let i = 0; i < users.length; i++) {
|
||||||
let user = users[i];
|
let user = users[i];
|
||||||
|
|
||||||
@ -56,4 +57,5 @@ async function main() {
|
|||||||
process.exit();
|
process.exit();
|
||||||
}, 3000);
|
}, 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
main();
|
main();
|
||||||
|
Loading…
Reference in New Issue
Block a user