Changes on packages
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" />
|
||||
<PackageReference Include="Microsoft.OpenApi" />
|
||||
<PackageReference Include="Newtonsoft.Json" />
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" />
|
||||
<PackageReference Include="OpenTelemetry" />
|
||||
<PackageReference Include="OpenTelemetry.Api" />
|
||||
|
||||
@@ -125,7 +125,7 @@ public sealed class JwtBearerEventsHandler(
|
||||
|
||||
public override Task Challenge(JwtBearerChallengeContext context)
|
||||
{
|
||||
if (context.AuthenticateFailure is not null)
|
||||
if (context.AuthenticateFailure != null)
|
||||
logger.LogWarning("JWT challenge: {Error} - {Description}", context.Error, context.ErrorDescription);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class ValidationFilter<T>(IValidator<T> validator) : IEndpointFilt
|
||||
{
|
||||
var argument = context.Arguments.OfType<T>().FirstOrDefault();
|
||||
|
||||
if (argument is null)
|
||||
if (argument == null)
|
||||
return await next(context);
|
||||
|
||||
var result = await validator.ValidateAsync(argument, context.HttpContext.RequestAborted);
|
||||
|
||||
@@ -10,10 +10,10 @@ public sealed class UpdatePlayListRequestValidator : AbstractValidator<UpdatePla
|
||||
RuleFor(x => x.NewName)
|
||||
.NotEmpty()
|
||||
.MaximumLength(50)
|
||||
.When(x => x.NewName is not null);
|
||||
.When(x => x.NewName != null);
|
||||
|
||||
RuleFor(x => x.NewDescription)
|
||||
.MaximumLength(256)
|
||||
.When(x => x.NewDescription is not null);
|
||||
.When(x => x.NewDescription != null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user