Skip to content

Commit 73242e1

Browse files
authored
Add product categories and entities for tags in the future (#74)
* Add product category and tag entities * Initial progress on shop category controller * Fix GetCategory endpoint * Wrap up product categories
1 parent cd82036 commit 73242e1

20 files changed

Lines changed: 4273 additions & 665 deletions

EliteAPI/Background/Discord/RefreshProductsBackgroundJob.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ private async Task RefreshDiscordProducts(CancellationToken ct) {
7373
context.Products.Add(new Product {
7474
Id = id,
7575
Type = discordProduct.Type,
76-
Category = ProductCategory.None,
7776
Name = discordProduct.Name,
7877
Slug = discordProduct.Slug,
7978
Flags = discordProduct.Flags,

EliteAPI/Controllers/AccountController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public async Task<ActionResult<AuthorizedAccountDto>> Get()
4747
.Include(a => a.MinecraftAccounts)
4848
.ThenInclude(a => a.Badges)
4949
.Include(a => a.Entitlements.Where(e => !e.Deleted))
50-
.ThenInclude(a => a.Product)
51-
.ThenInclude(p => p.WeightStyles)
50+
.ThenInclude(a => a.Product)
51+
.ThenInclude(p => p.WeightStyles)
5252
.Include(a => a.UserSettings)
53-
.ThenInclude(a => a.WeightStyle)
53+
.ThenInclude(a => a.WeightStyle)
5454
.AsSplitQuery()
5555
.FirstOrDefaultAsync(a => a.Id.Equals(user.AccountId));
5656

0 commit comments

Comments
 (0)