Can't update e6 IQDB
Closed this issue · 0 comments
faucetlol commented
When clicking UREV to try and update the IQDB data:
NoMethodError exception raised
undefined method `e6_iqdb_entries' for nil:NilClass similar.each { |s| s.e6_iqdb_entries.destroy_all } ^^^^^^^^^^^^^^^^
Request
{
"params": {
"_method": "post",
"controller": "submission_files",
"action": "update_e6_iqdb",
"id": "107"
},
"referrer": "http://localhost:9000/artists/2?search%5Bupload_status%5D=not_uploaded",
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
}
Stacktrace
app/models/submission_file.rb:147:in `block in update_e6_iqdb'
app/models/submission_file.rb:147:in `each'
app/models/submission_file.rb:147:in `update_e6_iqdb'
app/controllers/submission_files_controller.rb:31:in `update_e6_iqdb'
app/controllers/application_controller.rb:26:in `with_time_zone'```