Browse Source

Just some consistency.

pull/861/head
Sebastian 4 years ago
parent
commit
f6f8001d3a
  1. 8
      backend/src/Squidex.Infrastructure/Queries/FilterSchema.cs
  2. 1
      backend/src/Squidex/Areas/IdentityServer/Controllers/Connect/AuthorizationController.cs

8
backend/src/Squidex.Infrastructure/Queries/FilterSchema.cs

@ -46,12 +46,10 @@ namespace Squidex.Infrastructure.Queries
{ {
var path = string.Join('.', pathStack.Reverse()); var path = string.Join('.', pathStack.Reverse());
var schema = field.Schema; var schema = field.Schema with
if (schema.Fields != null)
{ {
schema = schema with { Fields = null }; Fields = null
} };
result?.Add(field with { Path = path, Schema = schema }); result?.Add(field with { Path = path, Schema = schema });
} }

1
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); var application = await applicationManager.FindByClientIdAsync(request.ClientId, HttpContext.RequestAborted);
if (application == null) if (application == null)
{ {
throw new InvalidOperationException("The application details cannot be found in the database."); throw new InvalidOperationException("The application details cannot be found in the database.");

Loading…
Cancel
Save