mod/machines/set/all/reset_machines.rb in card-1.99.3 vs mod/machines/set/all/reset_machines.rb in card-1.99.4

- old
+ new

@@ -3,20 +3,20 @@ Auth.as_bot do card = Card[:all, :script, :machine_output] if card card.update_columns trash: true card.expire - Card::Virtual.where(right_id: Card::MachineCacheID).delete_all + Card::Virtual.where(right_id: MachineCacheID).delete_all end end end def reset_all_machines Auth.as_bot do Card.search(right: { codename: "machine_output" }).each do |card| card.update_columns trash: true card.expire end - Card::Virtual.where(right_id: Card::MachineCacheID).delete_all + Card::Virtual.where(right_id: MachineCacheID).delete_all end end end