FIX_TPA&INS_FILE_CORRUPT_ISSUE

This commit is contained in:
velz 2025-04-22 09:30:24 +05:30
parent 8d9d8ddb27
commit 12d72ca614
2 changed files with 5 additions and 7 deletions

View File

@ -529,6 +529,7 @@ class EmpDataServiceController extends BaseController
// Close and remove temporary file
fclose($tempFile);
exit();
return true; // Excel file successfully generated and exported
@ -633,6 +634,7 @@ class EmpDataServiceController extends BaseController
// Close and remove the temporary file
fclose($tempFile);
exit();
return true;
} else {
@ -784,6 +786,7 @@ class EmpDataServiceController extends BaseController
// Close and remove the temporary file
fclose($tempFile);
exit();
return true;
} else {
@ -897,6 +900,7 @@ class EmpDataServiceController extends BaseController
// Close and remove the temporary file
fclose($tempFile);
exit();
return true;
} else {
@ -1196,6 +1200,7 @@ class EmpDataServiceController extends BaseController
// Close and remove temporary file
fclose($tempFile);
exit();
return true; // Excel file successfully generated and exported

View File

@ -1,7 +0,0 @@
#!/bin/bash
while true; do
echo "Running job at $(date)"
/usr/bin/php /var/www/nhance/zenith/public/index.php cli/processjob
sleep 1 # Optional: Add a sleep to avoid CPU overload
done