From fe3a68c57871399dfa21cbb99487eddca3386cf3 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 3 Aug 2021 14:48:46 +0200 Subject: [PATCH] Fix --- .../Commands/Implementation/Sync/Contents/Extensions.cs | 2 +- cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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