feat/chapter-entity-image-storage #1
@@ -39,7 +39,7 @@ readonly class GetMangaChaptersHandler
|
||||
volume: $chapter->getVolume(),
|
||||
isVisible: $chapter->isVisible(),
|
||||
pagesDirectory: $chapter->getPagesDirectory(),
|
||||
createdAt: $chapter->getCreatedAt()
|
||||
createdAt: $chapter->getCreatedAt()->format(\DateTimeInterface::RFC3339)
|
||||
),
|
||||
$chapters
|
||||
),
|
||||
|
||||
@@ -11,6 +11,6 @@ readonly class ChapterResponse
|
||||
public ?int $volume,
|
||||
public bool $isVisible,
|
||||
public ?string $pagesDirectory,
|
||||
public \DateTimeImmutable $createdAt
|
||||
public string $createdAt
|
||||
) {}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ readonly class GetMangaChaptersStateProvider implements ProviderInterface
|
||||
volume: $chapter->volume,
|
||||
isVisible: $chapter->isVisible,
|
||||
isAvailable: $chapter->pagesDirectory !== null,
|
||||
createdAt: $chapter->createdAt->format(\DateTimeInterface::RFC3339)
|
||||
createdAt: $chapter->createdAt
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user