1
0
mirror of https://github.com/C9Glax/tranga.git synced 2025-07-07 03:14:17 +02:00

[postgres-Server-V2] feat: Convert chapterNumeber to string

This commit is contained in:
Alessandro Benetton
2025-01-25 11:57:54 +01:00
parent be6b3da1be
commit ebe7e145aa
31 changed files with 881 additions and 430 deletions

@ -14,7 +14,7 @@ namespace API.Schema;
public class Manga
{
[MaxLength(64)]
public string MangaId { get; init; } = TokenGen.CreateToken(typeof(Manga), 64);
public string MangaId { get; init; }
[MaxLength(64)]
public string ConnectorId { get; init; }
@ -57,6 +57,7 @@ public class Manga
string? coverFileNameInCache, uint year, string? originalLanguage, MangaReleaseStatus releaseStatus,
float ignoreChapterBefore, string mangaConnectorId)
{
MangaId = TokenGen.CreateToken(typeof(Manga), string.Join(MangaConnectorId, ConnectorId));
ConnectorId = connectorId;
Name = name;
Description = description;