fix: geocode sync tool method call

This commit is contained in:
Tiago Ribeiro 2026-03-09 09:26:44 -03:00
parent 5d1f78dd33
commit 68948e3c96

View file

@ -29,6 +29,7 @@ func main() {
mapboxClient := mapbox.New(cfg.MapboxAccessToken) mapboxClient := mapbox.New(cfg.MapboxAccessToken)
notifySvc := notifications.NewLoggerNotificationService() notifySvc := notifications.NewLoggerNotificationService()
// Correct parameters for NewService: repo, pay, mapbox, notify, commission, buyerFee, jwtSecret, ttl, pepper
svc := usecase.NewService(repo, nil, mapboxClient, notifySvc, 12.0, 0.06, cfg.JWTSecret, cfg.JWTExpiresIn, cfg.PasswordPepper) svc := usecase.NewService(repo, nil, mapboxClient, notifySvc, 12.0, 0.06, cfg.JWTSecret, cfg.JWTExpiresIn, cfg.PasswordPepper)
fmt.Println("Starting retroactive geocode sync...") fmt.Println("Starting retroactive geocode sync...")