李昊 4 years ago
parent
commit
cd32507d16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      GxPress/Api/GxPress.Api/AdminControllers/AdminUtilsController.cs

+ 1 - 1
GxPress/Api/GxPress.Api/AdminControllers/AdminUtilsController.cs

@@ -423,7 +423,7 @@ namespace GxPress.Api.AdminControllers
         [HttpGet("im-user")]
         public async Task<bool> SetImUser()
         {
-            var users = await _userRepository.GetAllAsync(Q.Where(nameof(Entity.User.Id), ">", 0));
+            var users = await _userRepository.GetAllAsync(Q.Where(nameof(Entity.User.Id), "=", ""));
             foreach (var item in users)
             {
                 await _userRepository.CreateMiUserAsync(item);