lib/souls/cli/sync/model.rb in souls-0.32.18 vs lib/souls/cli/sync/model.rb in souls-0.33.0

- old
+ new

@@ -41,11 +41,11 @@ worker_latest_date = 0 else api_file_data = file_diff(Dir["#{api_dir}/*.rb"]) worker_file_data = file_diff(Dir["#{worker_dir}/*.rb"]) - api_latest_date = Date.parse(api_file_data.max) - worker_latest_date = Date.parse(worker_file_data.max) + api_latest_date = Time.parse(api_file_data.max) + worker_latest_date = Time.parse(worker_file_data.max) end if api_latest_date < worker_latest_date FileUtils.rm_rf(api_dir) if Dir.exist?(api_dir) FileUtils.mkdir(api_dir) unless Dir.exist?(api_dir)