raise"Validator not found for #{bulk_upload.log_type}"
end
end
defhandle_invalid_validator
ifvalidator.errors.full_messages.include?("Template is blank - The template must be filled in for us to create the logs and check if data is correct.")
@bulk_upload.update!(choice:"blank_template")
elsifvalidator.errors.full_messages.include?("Incorrect number of fields, please ensure you have used the correct template")