Source to_s

This commit is contained in:
Eugene Burmakin 2025-08-22 22:14:03 +02:00
parent b5758db1c1
commit 001d294885

View file

@ -43,7 +43,7 @@ class Imports::Create
private
def importer(source)
case source
case source.to_s
when 'google_semantic_history' then GoogleMaps::SemanticHistoryImporter
when 'google_phone_takeout' then GoogleMaps::PhoneTakeoutImporter
when 'google_records' then GoogleMaps::RecordsStorageImporter
@ -51,6 +51,8 @@ class Imports::Create
when 'gpx' then Gpx::TrackImporter
when 'geojson' then Geojson::Importer
when 'immich_api', 'photoprism_api' then Photos::Importer
else
raise ArgumentError, "Unsupported source: #{source}"
end
end