Pass enum to Db::Query, not its value

This commit is contained in:
Mike Colagrosso 2024-10-03 14:08:42 -06:00 committed by Alex Cabal
parent 2273367c6d
commit 4aefe412f9

View file

@ -1636,7 +1636,7 @@ class Ebook{
values (?,
?,
?)
', [$source->EbookId, $source->Type->value, $source->Url]);
', [$source->EbookId, $source->Type, $source->Url]);
$source->EbookSourceId = Db::GetLastInsertedId();
}