Skip to content

Commit b01acea

Browse files
committed
Fix compile issue.
1 parent 8932f54 commit b01acea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.User.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
using BotSharp.Abstraction.Repositories.Filters;
33
using BotSharp.Abstraction.Users.Enums;
44
using BotSharp.Abstraction.Users.Models;
5-
using MongoDB.Driver;
6-
using System.Globalization;
75

86
namespace BotSharp.Plugin.MongoStorage.Repository;
97

@@ -24,7 +22,7 @@ public partial class MongoRepository
2422
return null;
2523
}
2624

27-
string phoneSecond = phone.StartsWith("+86") ? phone.Replace("+86", "") : $"+86{phone}";
25+
phoneSecond = phone.StartsWith("+86") ? phone.Replace("+86", "") : $"+86{phone}";
2826

2927
var user = _dc.Users.AsQueryable().FirstOrDefault(x => (x.Phone == phone || x.Phone == phoneSecond) && x.Type != UserType.Affiliate
3028
&& (x.RegionCode == regionCode || string.IsNullOrWhiteSpace(x.RegionCode))

0 commit comments

Comments
 (0)