channainfo / commissioner

A Ruby gem to enhance Spree Commerce into a multi-service platform, enabling it to model any business applications. #powerup #spree #spree-commerce
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

fix check in bulk creator error #1565

Open nenghakheng opened 3 months ago

nenghakheng commented 3 months ago

Error Raised:

Application spree_starter

⚠️ Error occurred in staging ⚠️ A NoMethodError occurred in check_in_bulks#create.

Exception: undefined method `parent' for nil:NilClass

Request:

* url : https://staging-server.contigo.asia/api/v2/operator/check_in_bulks?locale=en_US
* http_method : POST
* ip_address : 43.230.192.190
* parameters : {"guest_ids"=>[288], "include"=>"guest", "locale"=>"en_US", "format"=>"json", "controller"=>"spree/api/v2/operator/check_in_bulks", "action"=>"create", "check_in_bulk"=>{"guest_ids"=>[288], "include"=>"guest"}}
* timestamp : 2024-06-25 10:34:07 +0700