core: change regip to ip

This commit is contained in:
undefined committed 2021-09-13 21:08:31 +08:00
1 parent fae452cc94
commit 49a6165472
5 files changed
+24 -18

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ async function _address(
if (bset.has(ip)) return;
bset.add(ip);
report({ message: `ip ${ip}` });
const users = await db.collection('user').find({ $or: [{ loginip: ip }, { regip: ip }] }).toArray();
const users = await db.collection('user').find({ ip }).toArray();
const tasks = [];
for (const udoc of users) {
tasks.push(_user(udoc._id, bset, uset, dset, dryrun, report));