Skip to content

Commit

Permalink
Use mapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Nov 18, 2024
1 parent 96721d2 commit 29a5a9a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cli/Squidex.CLI/Squidex.CLI/Commands/App_Sync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<OutArguments>
Expand Down

0 comments on commit 29a5a9a

Please sign in to comment.