FIX_TPA&INS_FILE_CORRUPT_ISSUE
This commit is contained in:
parent
8d9d8ddb27
commit
12d72ca614
@ -529,6 +529,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
// Close and remove temporary file
|
// Close and remove temporary file
|
||||||
fclose($tempFile);
|
fclose($tempFile);
|
||||||
|
exit();
|
||||||
|
|
||||||
return true; // Excel file successfully generated and exported
|
return true; // Excel file successfully generated and exported
|
||||||
|
|
||||||
@ -633,6 +634,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
// Close and remove the temporary file
|
// Close and remove the temporary file
|
||||||
fclose($tempFile);
|
fclose($tempFile);
|
||||||
|
exit();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
@ -784,6 +786,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
// Close and remove the temporary file
|
// Close and remove the temporary file
|
||||||
fclose($tempFile);
|
fclose($tempFile);
|
||||||
|
exit();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
@ -897,6 +900,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
// Close and remove the temporary file
|
// Close and remove the temporary file
|
||||||
fclose($tempFile);
|
fclose($tempFile);
|
||||||
|
exit();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
@ -1196,6 +1200,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
// Close and remove temporary file
|
// Close and remove temporary file
|
||||||
fclose($tempFile);
|
fclose($tempFile);
|
||||||
|
exit();
|
||||||
|
|
||||||
return true; // Excel file successfully generated and exported
|
return true; // Excel file successfully generated and exported
|
||||||
|
|
||||||
|
|||||||
@ -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
|
|
||||||
Loading…
Reference in New Issue
Block a user