Renames ProfileColors to Colors
This commit is contained in:
@@ -53,15 +53,15 @@ public class ChangeColorsHandler(
|
||||
{
|
||||
var creator = await context
|
||||
.Creators
|
||||
.Include(c => c.ProfileColors)
|
||||
.Include(c => c.Colors)
|
||||
.SingleAsync(
|
||||
c => c.Id == request.CreatorId,
|
||||
cancellationToken: ct);
|
||||
|
||||
creator.ProfileColors.BannerTop = request.BannerTop;
|
||||
creator.ProfileColors.BannerBottom = request.BannerBottom;
|
||||
creator.ProfileColors.Accent = request.Accent;
|
||||
creator.ProfileColors.Menu = request.Menu;
|
||||
creator.Colors.BannerTop = request.BannerTop;
|
||||
creator.Colors.BannerBottom = request.BannerBottom;
|
||||
creator.Colors.Accent = request.Accent;
|
||||
creator.Colors.Menu = request.Menu;
|
||||
|
||||
await context.SaveChangesAsync(ct);
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ public class ChangeSocialsHandler(
|
||||
{
|
||||
var creator = await context
|
||||
.Creators
|
||||
.Include(c => c.ProfileColors)
|
||||
.Include(c => c.Socials)
|
||||
.SingleAsync(
|
||||
c => c.Id == request.CreatorId,
|
||||
cancellationToken: ct);
|
||||
|
||||
@@ -62,7 +62,7 @@ public class GetCreatorByAliasHandler(
|
||||
Name = creator.Name,
|
||||
About = creator.About,
|
||||
Socials = creator.Socials,
|
||||
ProfileColors = creator.ProfileColors,
|
||||
Colors = creator.Colors,
|
||||
Images = creator.Images,
|
||||
SubscriberCount = subscriberCount,
|
||||
};
|
||||
|
||||
@@ -10,7 +10,7 @@ public class CreatorModel
|
||||
public string Name { get; set; }
|
||||
public About About { get; set; }
|
||||
public Socials Socials { get; set; }
|
||||
public ProfileColors ProfileColors { get; set; }
|
||||
public Colors Colors { get; set; }
|
||||
public Images Images { get; set; }
|
||||
public int SubscriberCount { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user