diff --git a/manifests/overlays/develop/kustomization.yaml b/manifests/overlays/develop/kustomization.yaml index 3c4d993..9f91425 100644 --- a/manifests/overlays/develop/kustomization.yaml +++ b/manifests/overlays/develop/kustomization.yaml @@ -6,10 +6,10 @@ resources: images: - name: ghcr.io/startupnationlabs/react-flight-tracker-satellite/api newName: ghcr.io/startupnationlabs/react-flight-tracker-satellite/api - newTag: d20f6c1bb28a20905463405a4a3f7dea70ebb172 + newTag: dcfe1a17b31ecee81fe5063f95c841afa0b7b14c - name: ghcr.io/startupnationlabs/react-flight-tracker-satellite/nginx-cache newName: ghcr.io/startupnationlabs/react-flight-tracker-satellite/nginx-cache - newTag: d20f6c1bb28a20905463405a4a3f7dea70ebb172 + newTag: dcfe1a17b31ecee81fe5063f95c841afa0b7b14c patches: diff --git a/service/initlization.go b/service/initlization.go index 9077f0d..94cf6d5 100644 --- a/service/initlization.go +++ b/service/initlization.go @@ -30,8 +30,9 @@ func NewSatelliteService() *SatelliteService { } // check if the object id is already in the map if _, ok := calculatedMap[tle.NORAD_CAT_ID]; ok { - log.Fatalf("NORAD_CAT_ID %v is already in the map", tle.OBJECT_ID) + log.Warnf("NORAD_CAT_ID %v is already in the map, latest version taken into account", tle.OBJECT_ID) } + calculatedMap[tle.NORAD_CAT_ID] = tle } diff --git a/spacetrack/client.go b/spacetrack/client.go index 0754723..2036326 100644 --- a/spacetrack/client.go +++ b/spacetrack/client.go @@ -5,10 +5,9 @@ import ( "fmt" "net/url" "os" -) -import "github.com/go-resty/resty/v2" -import ( + "github.com/go-resty/resty/v2" + log "github.com/sirupsen/logrus" )