#3351 - An ActiveRecord::RecordInvalid occurred in g7_spaces#make_it_available: Validation failed: Amount must be greater than 0 app/models/account.rb:61:in `debit!'

An ActiveRecord::RecordInvalid occurred in g7_spaces#make_it_available:

 Validation failed: Amount must be greater than 0
 app/models/account.rb:61:in `debit!'


-------------------------------
Request:
-------------------------------

 * URL        : https://bikelink.org/g7_spaces/2/make_it_available
 * HTTP Method: POST
 * IP address : 83.148.38.152
 * Parameters : {"authenticity_token"=>"SOrs008RNu4MoWnxSOcS/NgaPTIihHPDTWmfDdthz0LofLvwkhQ5GayGOQspQhISr3aMXwM1Mj50hq3z0TpRbQ==", "charge"=>"true", "email"=>"minsc@atlas.cz", "password"=>"[FILTERED]", "commit"=>"Make it available", "controller"=>"g7_spaces", "action"=>"make_it_available", "id"=>"2"}
 * Timestamp  : 2022-12-23 08:04:00 UTC
 * Server : www-5.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 2948

-------------------------------
Session:
-------------------------------

 * session id: [FILTERED]
 * data: {"session_id"=>"1ebe3ce36388cb5d95eca3cd1eb66c8d",
  "warden.user.person.key"=>[[3142], "_Nou9U29jHTmGfhBBee9"],
  "_csrf_token"=>"g7+RsBYd0xVlSyXXo4QWZ76/7fyYCy1dCnLxVfmrpjA="}

-------------------------------
Backtrace:
-------------------------------

 app/models/account.rb:61:in `debit!'
 app/services/g7/device_rentals/charge.rb:15:in `call'
 app/services/g7/spaces/make_it_available.rb:30:in `block in call'
 app/services/g7/spaces/make_it_available.rb:24:in `call'
 app/services/g7/spaces/make_it_available.rb:20:in `call'
 app/controllers/g7_spaces_controller.rb:74:in `make_it_available'
 app/controllers/application_controller.rb:44:in `process_action'
Znovu načíst