From ab8b72c6e97d5b0fae988058c4886dd8e6d1dc9e Mon Sep 17 00:00:00 2001 From: Alexander Huck Date: Wed, 20 Sep 2023 18:38:03 +0200 Subject: [PATCH] feat: use filters in the new controller --- cmd/calendarsync/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/calendarsync/main.go b/cmd/calendarsync/main.go index 8583418..9373f4e 100644 --- a/cmd/calendarsync/main.go +++ b/cmd/calendarsync/main.go @@ -164,7 +164,7 @@ func Run(c *cli.Context) error { } } - controller := sync.NewController(log.Default(), sourceAdapter, sinkAdapter, cfg.Sync.SyncDeclinedEvents, sync.TransformerFactory(cfg.Transformations)...) + controller := sync.NewController(log.Default(), sourceAdapter, sinkAdapter, sync.TransformerFactory(cfg.Transformations), sync.FilterFactory(cfg.Filters)) if cfg.UpdateConcurrency != 0 { controller.SetConcurrency(cfg.UpdateConcurrency) }