diff --git a/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Sync/Contents/Extensions.cs b/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Sync/Contents/Extensions.cs index 1c4395ab..2460a7a7 100644 --- a/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Sync/Contents/Extensions.cs +++ b/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Sync/Contents/Extensions.cs @@ -20,7 +20,7 @@ public static BulkUpdateJob ToJob(this ContentModel model, SchemasDto schemas) var id = model.Id; #pragma warning disable CS0618 // Type or member is obsolete - var singleton = schemas.Items.Single(x => x.Name == model.Schema && x.IsSingleton); + var singleton = schemas.Items.FirstOrDefault(x => x.Name == model.Schema && x.IsSingleton); #pragma warning restore CS0618 // Type or member is obsolete if (singleton != null) { diff --git a/cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj b/cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj index bc96b77c..e3d32be4 100644 --- a/cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj +++ b/cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj @@ -14,7 +14,7 @@ net5.0 true sq - 7.11 + 7.12