Cleanup after feature implementation.
This commit is contained in:
parent
1050fa4e54
commit
10c8ea34fe
19 changed files with 23 additions and 80 deletions
|
@ -33,10 +33,6 @@ namespace API.Data
|
|||
{
|
||||
base.OnModelCreating(builder);
|
||||
|
||||
// builder.Entity<ServerSetting>()
|
||||
// .HasAlternateKey(s => s.Key)
|
||||
// .HasName("AlternateKey_Key");
|
||||
|
||||
builder.Entity<AppUser>()
|
||||
.HasMany(ur => ur.UserRoles)
|
||||
.WithOne(u => u.User)
|
||||
|
|
|
@ -5,7 +5,6 @@ using API.Constants;
|
|||
using API.Entities;
|
||||
using API.Services;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Data
|
||||
{
|
||||
|
|
|
@ -137,8 +137,6 @@ namespace API.Data
|
|||
var volumeList = new List<VolumeDto>() {volume};
|
||||
await AddVolumeModifiers(userId, volumeList);
|
||||
|
||||
//TODO: volumeList[0].Files = volumeList[0].Files.OrderBy(f => f.Chapter).ToList();
|
||||
|
||||
return volumeList[0];
|
||||
}
|
||||
|
||||
|
@ -197,8 +195,6 @@ namespace API.Data
|
|||
}
|
||||
|
||||
return chapterIds.ToArray();
|
||||
|
||||
//return series.Select(s => s.Volumes).Select(v => v.Select(v => v.Chapters)).Select(c => c.Id);
|
||||
}
|
||||
|
||||
private async Task AddSeriesModifiers(int userId, List<SeriesDto> series)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue