Fix failing tests

This commit is contained in:
Eugene Burmakin 2026-01-06 00:25:36 +01:00
parent 2aaad3cf30
commit 1b504ff757
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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