Fix broken enum

This commit is contained in:
Alex Cabal 2024-05-17 22:05:41 -05:00
parent cf6f01981b
commit 3215e8edcf
3 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ function InsertTransaction($transactionId){
values (utc_timestamp(), values (utc_timestamp(),
?, ?,
?)', ?)',
[PaymentProcessor::FracturedAtlas, $transactionId]); [PaymentProcessorType::FracturedAtlas, $transactionId]);
return true; return true;
} }

View file

@ -69,8 +69,8 @@ try{
$driver = FirefoxDriver::start($capabilities); $driver = FirefoxDriver::start($capabilities);
foreach($pendingPayments as $pendingPayment){ foreach($pendingPayments as $pendingPayment){
$pendingPayment->Processor = PaymentProcessor::from($pendingPayment->Processor); $pendingPayment->Processor = PaymentProcessorType::from($pendingPayment->Processor);
if($pendingPayment->Processor == PaymentProcessor::FracturedAtlas){ if($pendingPayment->Processor == PaymentProcessorType::FracturedAtlas){
$log->Write('Processing donation ' . $pendingPayment->TransactionId . ' ...'); $log->Write('Processing donation ' . $pendingPayment->TransactionId . ' ...');
if(Db::QueryInt(' if(Db::QueryInt('