mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Fix failing tests
This commit is contained in:
parent
2aaad3cf30
commit
1b504ff757
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ class Map::LeafletController < ApplicationController
|
|||
end
|
||||
|
||||
def calculate_distance
|
||||
return 0 if @points.count < 2
|
||||
return 0 if @points.count(:id) < 2
|
||||
|
||||
# Use PostGIS window function for efficient distance calculation
|
||||
# This is O(1) database operation vs O(n) Ruby iteration
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ RSpec.describe 'Api::V1::Users', type: :request do
|
|||
speed_colored_routes points_rendering_mode minutes_between_routes
|
||||
time_threshold_minutes merge_threshold_minutes live_map_enabled
|
||||
route_opacity immich_url photoprism_url visits_suggestions_enabled
|
||||
speed_color_scale fog_of_war_threshold
|
||||
speed_color_scale fog_of_war_threshold globe_projection
|
||||
])
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue