优化丑陋的代码

This commit is contained in:
undefined committed 2020-06-23 22:40:01 +08:00
1 parent 62ac2f52c9
commit dd1b7c363a
19 files changed
+97 -502

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ class RecordListHandler extends RecordHandler {
if (uidOrName) {
q.$or = [
{ unameLower: uidOrName.toLowerCase() },
{ _id: parseInt(uidOrName) },
{ _id: parseInt(uidOrName, 10) },
];
}
if (pid) q.pid = pid;