Skip to content

Commit d9cff12

Browse files
committed
Fix card cycles release date calculation
1 parent 707e7d8 commit d9cff12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/cards.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ namespace :cards do
381381

382382
def update_date_release_for_cycles
383383
CardCycle.all.find_each do |c|
384-
c.date_release = (c.card_sets.min_by { :date_release }).date_release
384+
c.date_release = c.card_sets.minimum(:date_release)
385385
c.save
386386
end
387387
end

0 commit comments

Comments
 (0)