Skip to content

Commit

Permalink
rake task improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
forsbergplustwo committed Sep 21, 2023
1 parent 66d4b9e commit de83199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/create_initial_imports.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ desc "Creates the inital import for all users, so all historical payments and me
task create_initial_imports: :environment do
User.find_each do |user|
import = user.imports.create!(
source: Import.sources[:shopify_payments_api]
source: Import.sources[:shopify_payments_api],
status: Import.statuses[:completed]
)
user.metrics.update_all(import_id: import.id) if user.metrics.any?
Expand Down

0 comments on commit de83199

Please sign in to comment.