diff --git a/app/Http/Controllers/ImportController.php b/app/Http/Controllers/ImportController.php index 807340fa1e57..66eed43075f6 100644 --- a/app/Http/Controllers/ImportController.php +++ b/app/Http/Controllers/ImportController.php @@ -192,6 +192,7 @@ class ImportController extends Controller $contents = file_get_contents($file->getPathname()); // Store the csv in cache with an expiry of 10 minutes Cache::put($hash.'-'.$entityType, base64_encode($contents), 600); + nlog($hash.'-'.$entityType); } } diff --git a/app/Import/Providers/BaseImport.php b/app/Import/Providers/BaseImport.php index 94670d2e9c08..b2897352cc4a 100644 --- a/app/Import/Providers/BaseImport.php +++ b/app/Import/Providers/BaseImport.php @@ -104,6 +104,8 @@ class BaseImport return null; } + nlog("found {$entity_type}"); + $csv = base64_decode($base64_encoded_csv); $csv = mb_convert_encoding($csv, 'UTF-8', 'UTF-8'); diff --git a/database/migrations/2024_06_23_040253_2024-06-23_indexesforinvoiceid_payment_hashes.php b/database/migrations/2024_06_23_040253_2024-06-23_indexesforinvoiceid_payment_hashes.php new file mode 100644 index 000000000000..c4fc9c592fdc --- /dev/null +++ b/database/migrations/2024_06_23_040253_2024-06-23_indexesforinvoiceid_payment_hashes.php @@ -0,0 +1,28 @@ +unsignedInteger('fee_invoice_id')->nullable()->index()->change(); + }); + + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + // + } +};