修改部分
This commit is contained in:
parent
bbf047ec94
commit
f8e9853be3
|
@ -6,7 +6,7 @@
|
||||||
class SyncUserForgeTask
|
class SyncUserForgeTask
|
||||||
def call
|
def call
|
||||||
Rails.logger.info("##########_______sync_start________###########")
|
Rails.logger.info("##########_______sync_start________###########")
|
||||||
all_users = User.where("login is not null").first(1000)
|
all_users = User.where("login is not null and mail is not null and type = ?", "User").first(1000)
|
||||||
# 这里再把所有用户循环
|
# 这里再把所有用户循环
|
||||||
all_users.each do |u|
|
all_users.each do |u|
|
||||||
user_params = u.as_json
|
user_params = u.as_json
|
||||||
|
|
Loading…
Reference in New Issue