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