HJ_Server/src/fix_patch/patch_email_find.ts
xcy 122041f404 feat:
脚本目录
2023-12-21 18:16:54 +08:00

23 lines
507 B
TypeScript

import {initMongoDB} from "../setMongodb";
import {ctor} from "../global";
async function start() {
await initMongoDB();
let emails = await G.mongodb.collection("email").find({
title: {$regex: "wzry"}
}).toArray();
for (let i = 0; i < emails.length; i++) {
console.log();
}
}
ctor();
start().then(() => {
setInterval(() => {
console.log(new Date().format("MM-dd hh:mm:ss"));
}, 1000)
console.log("逻辑执行完成...等待退出!!!");
});