diff --git a/cmd/CatsOfMastodonBotGo/main.go b/cmd/CatsOfMastodonBotGo/main.go index cb1bef4..261e061 100644 --- a/cmd/CatsOfMastodonBotGo/main.go +++ b/cmd/CatsOfMastodonBotGo/main.go @@ -14,7 +14,6 @@ import ( func main() { // Setup config config.Init() - var config = config.Load() // Initialize database @@ -29,7 +28,7 @@ func main() { ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() var posts []domain.Post = nil - err, posts := services.PostServiceInstance.GetPostsFromApi(ctx, config.Tag, config.Instance) + err, posts := services.PostServiceInstance.GetPostsFromApi(ctx, config.Config.Tag, config.Config.Instance) if err != nil { log.Println(err) return