Rename Created and Updated in PHP code to EbookCreated and EbookUpdated to match the schema

This commit is contained in:
Mike Colagrosso 2024-05-20 22:23:38 -06:00 committed by Alex Cabal
parent ac7db8d375
commit f605a4df60
6 changed files with 19 additions and 19 deletions

View file

@ -105,8 +105,8 @@ function CreateZip(string $filePath, array $ebooks, string $type, string $webRoo
// Iterate over all ebooks and arrange them by publication month
foreach(Library::GetEbooksFromFilesystem($webRoot) as $ebook){
$timestamp = $ebook->Created->format('Y-m');
$updatedTimestamp = $ebook->Updated->getTimestamp();
$timestamp = $ebook->EbookCreated->format('Y-m');
$updatedTimestamp = $ebook->EbookUpdated->getTimestamp();
// Add to the 'ebooks by month' list
if(!isset($ebooksByGroup['months'][$timestamp])){