Skip to content

Commit

Permalink
Fix date saving
Browse files Browse the repository at this point in the history
  • Loading branch information
jbirdjavi committed Jan 22, 2025
1 parent 449d0d2 commit 1b9cefa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/controllers/jobs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ def edit

# POST /jobs
def create
sf_job = SFImport.new.create_job(job_params[:shop_id], job_params[:start_date], job_params[:end_date])
ls_job = LSExtract.new.create_job(job_params[:shop_id], job_params[:start_date], job_params[:end_date])
start_date = "#{job_params["start_date(1i)"]}-#{job_params["start_date(2i)"]}-#{job_params["start_date(3i)"]}"
end_date = "#{job_params["end_date(1i)"]}-#{job_params["end_date(2i)"]}-#{job_params["end_date(3i)"]}"

sf_job = SFImport.new.create_job(job_params[:shop_id], start_date, end_date)
ls_job = LSExtract.new.create_job(job_params[:shop_id], start_date, end_date)

SalesforceImportJob.perform_later
LightspeedExtractJob.perform_later
Expand Down

0 comments on commit 1b9cefa

Please sign in to comment.