mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Add Imports::Broadcaster to Immich::ImportParser
This commit is contained in:
parent
3ba70e906f
commit
853d02cd80
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ class Immich::ImportParser
|
|||
end
|
||||
|
||||
def call
|
||||
json.each { |point| create_point(point) }
|
||||
json.each.with_index(1) { |point, index| create_point(point, index) }
|
||||
end
|
||||
|
||||
def create_point(point)
|
||||
|
|
@ -28,7 +28,7 @@ class Immich::ImportParser
|
|||
user_id:
|
||||
)
|
||||
|
||||
1
|
||||
broadcast_import_progress(import, index)
|
||||
end
|
||||
|
||||
def point_exists?(point, timestamp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue