diff --git a/app/models/api_image.rb b/app/models/api_image.rb index 95f99f2..5e44c54 100644 --- a/app/models/api_image.rb +++ b/app/models/api_image.rb @@ -223,8 +223,8 @@ class APIImage < ApplicationRecord raise(Error, "Attempted to convert to unknown external: #{url}") end ExternalAPIImage.create!(api_image: self, external_id: external_id, site: type) - update_columns(artists: [], sources: [], width: 0, height: 0, mime_type: "external", file_ext: "external", file_size: 0) delete_files! + update_columns(artists: [], sources: [], width: 0, height: 0, mime_type: "external", file_ext: "external", file_size: 0) send_converted end end