diff --git a/src/common/Elsa.Api.Common/Abstractions/Endpoints.cs b/src/common/Elsa.Api.Common/Abstractions/Endpoints.cs index 82b6049f9..dd075a919 100644 --- a/src/common/Elsa.Api.Common/Abstractions/Endpoints.cs +++ b/src/common/Elsa.Api.Common/Abstractions/Endpoints.cs @@ -38,7 +38,7 @@ public abstract class ElsaEndpointWithoutRequest : EndpointWithoutReq } } -public class ElsaEndpoint : Endpoint where TRequest : notnull, new() where TResponse : notnull +public class ElsaEndpoint : Endpoint where TRequest : notnull where TResponse : notnull { protected void ConfigurePermissions(params string[] permissions) { @@ -49,7 +49,7 @@ public class ElsaEndpoint : Endpoint w } } -public class ElsaEndpoint : Endpoint where TRequest : notnull, new() where TResponse : notnull where TMapper : class, IMapper, new() +public class ElsaEndpoint : Endpoint where TRequest : notnull where TResponse : notnull where TMapper : class, IMapper, new() { protected void ConfigurePermissions(params string[] permissions) { @@ -60,7 +60,7 @@ public class ElsaEndpoint : Endpoint : Endpoint where TRequest : notnull, new() +public class ElsaEndpoint : Endpoint where TRequest : notnull { protected void ConfigurePermissions(params string[] permissions) { diff --git a/src/modules/Elsa.Workflows.Api/Endpoints/RuntimeAdmin/Resume/Endpoint.cs b/src/modules/Elsa.Workflows.Api/Endpoints/RuntimeAdmin/Resume/Endpoint.cs index 11c3acab4..3061a991b 100644 --- a/src/modules/Elsa.Workflows.Api/Endpoints/RuntimeAdmin/Resume/Endpoint.cs +++ b/src/modules/Elsa.Workflows.Api/Endpoints/RuntimeAdmin/Resume/Endpoint.cs @@ -12,7 +12,7 @@ namespace Elsa.Workflows.Api.Endpoints.RuntimeAdmin.Resume; /// Idempotent on the success path. /// [PublicAPI] -internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpointWithoutRequest +internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpoint { public override void Configure() {