Renames ProfileColors to Colors

This commit is contained in:
Jonathan Bourdon
2024-08-06 02:55:00 -04:00
parent 7cd7ae3080
commit f46d1146e1
10 changed files with 96 additions and 96 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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,
};

View File

@@ -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; }
}