Skip to content

Commit

Permalink
fix: job
Browse files Browse the repository at this point in the history
  • Loading branch information
mewthu2 committed Apr 10, 2024
1 parent 6122ea1 commit e590a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/update_product_sales_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def update_product_sales_info(kind)
def update_thirty_days_sales(kind)
products = Product.where(status: 'Active')

data_refference = Date.today.prev_month - 60.day
data_refference = Date.today.prev_month

start_date = data_refference.beginning_of_month.strftime('%Y-%m-%dT00:00:00Z')
end_date = data_refference.strftime('%Y-%m-%dT%H:%M:%SZ')
Expand Down

0 comments on commit e590a57

Please sign in to comment.