Missing Migration (#2790)
This commit is contained in:
parent
2b6fd1224f
commit
f443e513d1
11 changed files with 387 additions and 29 deletions
|
@ -15,7 +15,7 @@ public class MangaFileBuilder : IEntityBuilder<MangaFile>
|
|||
{
|
||||
_mangaFile = new MangaFile()
|
||||
{
|
||||
FilePath = filePath,
|
||||
FilePath = Parser.NormalizePath(filePath),
|
||||
Format = format,
|
||||
Pages = pages,
|
||||
LastModified = File.GetLastWriteTime(filePath),
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using API.Data;
|
||||
using API.Entities;
|
||||
|
@ -75,4 +76,18 @@ public class VolumeBuilder : IEntityBuilder<Volume>
|
|||
_volume.CoverImage = cover;
|
||||
return this;
|
||||
}
|
||||
|
||||
public VolumeBuilder WithCreated(DateTime created)
|
||||
{
|
||||
_volume.Created = created;
|
||||
_volume.CreatedUtc = created.ToUniversalTime();
|
||||
return this;
|
||||
}
|
||||
|
||||
public VolumeBuilder WithLastModified(DateTime lastModified)
|
||||
{
|
||||
_volume.LastModified = lastModified;
|
||||
_volume.LastModifiedUtc = lastModified.ToUniversalTime();
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue