chore(codebase): full cleanup pass
This commit is contained in:
@@ -49,7 +49,7 @@ public class GetCreatorBySlugHandler(
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/creators/@{Name}");
|
||||
Options((o => o.WithTags("Creators")));
|
||||
Options(o => o.WithTags("Creators"));
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
@@ -57,9 +57,9 @@ public class GetCreatorBySlugHandler(
|
||||
GetCreatorBySlugRequest req,
|
||||
CancellationToken ct)
|
||||
{
|
||||
var creatorName = req.Name.ToLower();
|
||||
string creatorName = req.Name.ToLower();
|
||||
|
||||
var response = await context
|
||||
GetCreatorBySlugResponse? response = await context
|
||||
.Creators
|
||||
.IgnoreQueryFilters()
|
||||
.Where(c => EF.Functions.ILike(c.Slug, creatorName))
|
||||
|
||||
Reference in New Issue
Block a user