From f6f8001d3a2d244cc9eb54fd67096c1ef090663b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 30 Mar 2022 15:11:52 +0200 Subject: [PATCH] Just some consistency. --- .../src/Squidex.Infrastructure/Queries/FilterSchema.cs | 8 +++----- .../Controllers/Connect/AuthorizationController.cs | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/backend/src/Squidex.Infrastructure/Queries/FilterSchema.cs b/backend/src/Squidex.Infrastructure/Queries/FilterSchema.cs index 030f7fe88..20797885d 100644 --- a/backend/src/Squidex.Infrastructure/Queries/FilterSchema.cs +++ b/backend/src/Squidex.Infrastructure/Queries/FilterSchema.cs @@ -46,12 +46,10 @@ namespace Squidex.Infrastructure.Queries { var path = string.Join('.', pathStack.Reverse()); - var schema = field.Schema; - - if (schema.Fields != null) + var schema = field.Schema with { - schema = schema with { Fields = null }; - } + Fields = null + }; result?.Add(field with { Path = path, Schema = schema }); } diff --git a/backend/src/Squidex/Areas/IdentityServer/Controllers/Connect/AuthorizationController.cs b/backend/src/Squidex/Areas/IdentityServer/Controllers/Connect/AuthorizationController.cs index 729270fac..25ad0880f 100644 --- a/backend/src/Squidex/Areas/IdentityServer/Controllers/Connect/AuthorizationController.cs +++ b/backend/src/Squidex/Areas/IdentityServer/Controllers/Connect/AuthorizationController.cs @@ -96,7 +96,6 @@ namespace Notifo.Areas.Account.Controllers } var application = await applicationManager.FindByClientIdAsync(request.ClientId, HttpContext.RequestAborted); - if (application == null) { throw new InvalidOperationException("The application details cannot be found in the database.");