李昊 4 年之前
父節點
當前提交
cd32507d16
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);