Update: 2026-05-08 14:35:20

This commit is contained in:
Hamza-Ayed
2026-05-08 14:35:20 +03:00
parent b913ff25c8
commit 9295be081c

View File

@@ -132,6 +132,7 @@ try {
$db->commit(); $db->commit();
echo "Success: Created Invoice $invoiceId\n"; echo "Success: Created Invoice $invoiceId\n";
try {
// Send silent push update for progress // Send silent push update for progress
$stmt = $db->prepare("SELECT total_images, processed_images, uploaded_by FROM invoice_batches WHERE id = ?"); $stmt = $db->prepare("SELECT total_images, processed_images, uploaded_by FROM invoice_batches WHERE id = ?");
$stmt->execute([$batchId]); $stmt->execute([$batchId]);
@@ -145,7 +146,6 @@ try {
'total' => $currentBatch['total_images'] 'total' => $currentBatch['total_images']
]); ]);
} }
} catch (\Exception $pushErr) { } catch (\Exception $pushErr) {
echo "Push error: " . $pushErr->getMessage() . "\n"; echo "Push error: " . $pushErr->getMessage() . "\n";
} }