Skip to content

Commit

Permalink
Avoid return within a transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova committed May 15, 2024
1 parent 54c96cc commit e62185e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/contract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ def bill_for(period, invoice, plan = self.plan)
# no validation because our DB has broken data
# TODO: cleanup DB and add validations?
self.save(:validate => false) if invoice.used?

return invoice.used?
end

invoice.used?
end

# this is remaining now here for service_contracts as of now
Expand Down

0 comments on commit e62185e

Please sign in to comment.