From 3a0e729ef3499e51684634232ced446218a914ae Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Fri, 17 Jul 2020 17:54:41 +0800 Subject: [PATCH] Change User Select --- app/tasks/check_gitea_user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tasks/check_gitea_user.rb b/app/tasks/check_gitea_user.rb index 5a9e7296a..74ab61ff1 100644 --- a/app/tasks/check_gitea_user.rb +++ b/app/tasks/check_gitea_user.rb @@ -4,7 +4,7 @@ class CheckGiteaUser def call SyncLog.sync_log("=====begin to check gitea_user======") - all_users = User.select(:id, :gitea_token, :gitea_uid, :mail, :type,:login,:platform).where(type: "User", gitea_token: [nil, ""], gitea_uid: [nil, ""]) + all_users = User.where(type: "User", gitea_token: [nil, ""], gitea_uid: [nil, ""]) if all_users.present? new_password = "12345678" # EMAIL_REGEX = /^[a-zA-Z0-9_\-.]+@[a-zA-Z0-9_\-.]+(\.[a-zA-Z0-9_-]+)+$/i