物品:更新物品表

This commit is contained in:
luying
2021-07-23 17:22:08 +08:00
parent 5ca29caa52
commit c9c0c1ee9a
3 changed files with 40059 additions and 90753 deletions
+1 -2
View File
@@ -16,8 +16,7 @@ export default class WhiteList extends BaseModel {
}
public static async checkTel(tel: string) {
const rec: WhiteListModelType = await WhiteListModel.findOneAndUpdate({}, { type: [] as any }).lean();
// const rec: WhiteListModelType = await WhiteListModel.findOne({ type: WHITE_LIST_TYPE.TEL, str: tel }).lean();
const rec: WhiteListModelType = await WhiteListModel.findOne({ type: WHITE_LIST_TYPE.TEL, str: tel }).lean();
return rec;
}