some fixes for docker and migrations

This commit is contained in:
2025-10-31 00:17:48 +01:00
parent 84ec54a893
commit 8d908a0502
13 changed files with 202 additions and 26 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"io"
"log/slog"
"net/http"
"os"
"time"
"github.com/cenkalti/backoff/v5"
@@ -42,7 +43,7 @@ func (s *Service) GetWeatherByCity(ctx context.Context, params GetMeteoData) (Me
toDate := fromDate.AddDate(0, 0, params.Days-1)
operation := func() (*http.Response, error) {
url := fmt.Sprintf("http://localhost:8080/data?city=%s&from=%s&to=%s",
url := fmt.Sprintf("%s/data?city=%s&from=%s&to=%s", os.Getenv("URL_SERVICE_A"),
params.Location, params.Date, toDate.Format("2006-01-02"))
slog.Info("url", "url", url)