diff --git a/lib/tasks/sync_asia_personal_data_tasks.rake b/lib/tasks/sync_asia_personal_data_tasks.rake index 65e6982..0c10984 100644 --- a/lib/tasks/sync_asia_personal_data_tasks.rake +++ b/lib/tasks/sync_asia_personal_data_tasks.rake @@ -368,7 +368,7 @@ namespace :sync_asia_personal_plugins do task :sync,[:user_names] => [:environment] do |task,args| if args.user_names user_ids = YAML.load(args.user_names) - member_ids = (MemberProfile.where(:email.in=>user_ids.map{|s| s + '@asia.edu.tw' }).pluck(:id) + member_ids = MemberProfile.where(:email.in=>user_ids.map{|s| s + '@asia.edu.tw' }).pluck(:id) User.where(:user_name.in=>user_ids, :member_profile_id.nin=>member_ids).each do |u| query_result = get_sync_data(u.user_name) emp = query_result["emp"]