feat: ajout de la gestion des commandes pour la suppression des fichiers CBZ et des chapitres, avec création des gestionnaires et des ressources API correspondantes
This commit is contained in:
parent
7fe4ac0d3b
commit
37e1b202c2
@@ -230,15 +230,15 @@ readonly class LegacyMangaRepository implements MangaRepositoryInterface
|
||||
id: new MangaId((string) $entity->getId()),
|
||||
title: new MangaTitle($entity->getTitle()),
|
||||
slug: new MangaSlug($entity->getSlug()),
|
||||
description: $entity->getDescription(),
|
||||
author: $entity->getAuthor(),
|
||||
publicationYear: $entity->getPublicationYear(),
|
||||
genres: $entity->getGenres(),
|
||||
status: $entity->getStatus(),
|
||||
description: $entity->getDescription() ?? '',
|
||||
author: $entity->getAuthor() ?? '',
|
||||
publicationYear: $entity->getPublicationYear() ?? 0,
|
||||
genres: $entity->getGenres() ?? [],
|
||||
status: $entity->getStatus() ?? '',
|
||||
externalId: $entity->getExternalId() ? new ExternalId($entity->getExternalId()) : null,
|
||||
imageUrl: $entity->getImageUrl(),
|
||||
rating: $entity->getRating(),
|
||||
imageUrls: $entity->getImageUrl() ? new ImageUrls($entity->getImageUrl(), $entity->getThumbnailUrl()) : null,
|
||||
imageUrls: $entity->getImageUrl() ? new ImageUrls($entity->getImageUrl() ?? '', $entity->getThumbnailUrl() ?? '') : null,
|
||||
createdAt: $entity->getCreatedAt(),
|
||||
);
|
||||
}
|
||||
@@ -252,7 +252,7 @@ readonly class LegacyMangaRepository implements MangaRepositoryInterface
|
||||
title: $entity->getTitle(),
|
||||
volume: $entity->getVolume(),
|
||||
isVisible: $entity->isVisible(),
|
||||
isAvailable: $entity->getCbzPath() !== null
|
||||
cbzPath: $entity->getCbzPath()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user