mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Rename method call to not shadow variable name
This commit is contained in:
parent
20d0ed8ec6
commit
cde5af7c24
1 changed files with 2 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ class Users::ImportData
|
|||
when 'trips'
|
||||
import_trips(value)
|
||||
when 'stats'
|
||||
import_stats(value)
|
||||
import_stats_section(value)
|
||||
when 'notifications'
|
||||
import_notifications(value)
|
||||
else
|
||||
|
|
@ -324,7 +324,7 @@ class Users::ImportData
|
|||
@import_stats[:trips_created] += trips_created
|
||||
end
|
||||
|
||||
def import_stats(stats_data)
|
||||
def import_stats_section(stats_data)
|
||||
Rails.logger.debug "Importing #{stats_data&.size || 0} stats"
|
||||
stats_created = Users::ImportData::Stats.new(user, stats_data).call.to_i
|
||||
@import_stats[:stats_created] += stats_created
|
||||
|
|
|
|||
Loading…
Reference in a new issue