From 0b3d4ebffd269610a97cebcc4d59c921b28e1594 Mon Sep 17 00:00:00 2001 From: Felix Riehm <mail@felixriehm.de> Date: Mon, 11 Mar 2024 16:02:56 +0100 Subject: [PATCH] convert ids of location mapping json to lower case --- api/world_map/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/world_map/controller.go b/api/world_map/controller.go index b6d151b..daebf41 100644 --- a/api/world_map/controller.go +++ b/api/world_map/controller.go @@ -7,6 +7,7 @@ import ( "encoding/json" "errors" "fmt" + "strings" "time" ) @@ -39,7 +40,7 @@ func (idc *Controller) Load() (worldMapDataMap map[string]Location, e error) { // generate map from array and use this in bloxberg service for _, worldMapEntry := range worldMapDataArray { - worldMapDataMap[worldMapEntry.Id] = Location{ + worldMapDataMap[strings.ToLower(worldMapEntry.Id)] = Location{ Coordinate: worldMapEntry.Coordinate, Country: worldMapEntry.Country, } -- GitLab