Get ebook from DB for artworks

This commit is contained in:
Mike Colagrosso 2024-06-11 14:57:12 -06:00 committed by Alex Cabal
parent c85db527cf
commit 4653b15288
2 changed files with 3 additions and 22 deletions

View file

@ -654,25 +654,6 @@ class Library{
return $retval;
}
/**
* @throws Exceptions\AppException
*/
public static function GetEbook(?string $ebookWwwFilesystemPath): ?Ebook{
if($ebookWwwFilesystemPath === null){
return null;
}
/** @var array<Ebook> $result */
$result = self::GetFromApcu('ebook-' . $ebookWwwFilesystemPath);
if(sizeof($result) > 0){
return $result[0];
}
else{
return null;
}
}
/**
* @throws Exceptions\AppException
*/