测试:调整

This commit is contained in:
luying
2021-09-18 18:39:00 +08:00
parent 8e1f30397f
commit 64c27f5705
5 changed files with 18 additions and 13 deletions

View File

@@ -192,9 +192,8 @@ export default class User extends BaseModel {
}
public static async findTokenByTel(tel: string) {
const user: UserType = await UserModel.findOne({ tel }).lean();
return user.token;
return user ? user.token : null;
}
public static async findTokenByUid(uid: number) {