Adds JetBrains.Annotations to reduce amount of false positives by static code analysis
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
using FastEndpoints;
|
||||
using Hutopy.Web.Common;
|
||||
using Hutopy.Web.Common;
|
||||
using Hutopy.Web.Features.Contents.Data;
|
||||
using Hutopy.Web.Features.Contents.Handlers.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Hutopy.Web.Features.Contents.Handlers;
|
||||
|
||||
[PublicAPI]
|
||||
public class GetSubscriptionsHandler(
|
||||
ContentDbContext context)
|
||||
: EndpointWithoutRequest<List<SubscriptionModel>>
|
||||
@@ -25,7 +24,7 @@ public class GetSubscriptionsHandler(
|
||||
.Subscriptions
|
||||
.Where(s => s.CreatedBy == userId)
|
||||
.Select(s => new SubscriptionModel(
|
||||
s.CreatorId,
|
||||
s.CreatorId,
|
||||
s.Creator!.Name,
|
||||
s.Creator.Images.Logo))
|
||||
.ToListAsync(cancellationToken: ct);
|
||||
|
||||
Reference in New Issue
Block a user