同步全部用户

This commit is contained in:
sylor_huang@126.com 2020-03-17 15:36:55 +08:00
parent a4a746b7ae
commit 4ad9c52bd5
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
class SyncUserForgeTask
def call
Rails.logger.info("##########_______sync_start________###########")
all_users = User.where("login is not null and mail is not null and type = ?", "User").first(1000)
all_users = User.where("login is not null and mail is not null and type = ?", "User")
# 这里再把所有用户循环
all_users.each do |u|
user_params = u.as_json