Rename function to Ebook::GetByIsWantedAndDifficulty()

This commit is contained in:
Mike Colagrosso 2024-12-28 02:41:52 -07:00 committed by Alex Cabal
parent e25993b208
commit 2d5cba0aaa
2 changed files with 2 additions and 2 deletions

View file

@ -2426,7 +2426,7 @@ final class Ebook{
*
* @return array<Ebook>
*/
public static function GetWantedByDifficulty(Enums\EbookPlaceholderDifficulty $difficulty): array{
public static function GetByIsWantedAndDifficulty(Enums\EbookPlaceholderDifficulty $difficulty): array{
return Db::Query('
SELECT Ebooks.*
from Ebooks inner join EbookPlaceholders using (EbookId)

View file

@ -3,7 +3,7 @@ use function Safe\ob_end_clean;
use function Safe\ob_start;
function WantedEbooks(Enums\EbookPlaceholderDifficulty $difficulty, ?bool $showPlaceholderMetadata): string{
$ebooks = Ebook::GetWantedByDifficulty($difficulty);
$ebooks = Ebook::GetByIsWantedAndDifficulty($difficulty);
$showPlaceholderMetadata = $showPlaceholderMetadata ?? false;
ob_start();