From 29a5a9adee2ba53b4d34a9d43bd6f53348087f5c Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Mon, 18 Nov 2024 17:26:05 +0100 Subject: [PATCH] Use mapper. --- cli/Squidex.CLI/Squidex.CLI/Commands/App_Sync.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cli/Squidex.CLI/Squidex.CLI/Commands/App_Sync.cs b/cli/Squidex.CLI/Squidex.CLI/Commands/App_Sync.cs index 4598ffe..010f18d 100644 --- a/cli/Squidex.CLI/Squidex.CLI/Commands/App_Sync.cs +++ b/cli/Squidex.CLI/Squidex.CLI/Commands/App_Sync.cs @@ -167,12 +167,7 @@ public sealed class OutArguments : AppArguments public SyncOptions ToOptions() { - return new SyncOptions - { - Targets = Targets, - MaxAgeDate = GetMaxAgeDate(), - StreamContents = StreamContents - }; + return SimpleMapper.Map(this, new SyncOptions()); } public sealed class Validator : AbstractValidator