Fix: Add env.php include to delete_trip and toggle_trip_published processors
This commit is contained in:
@@ -3,6 +3,7 @@ ob_start();
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$rootPath = dirname(dirname(__DIR__));
|
||||
require_once($rootPath . "/src/config/env.php");
|
||||
require_once($rootPath . '/src/config/functions.php');
|
||||
require_once($rootPath . '/src/config/connection.php');
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ try {
|
||||
}
|
||||
|
||||
// Optimize image (resize if too large)
|
||||
optimizeImage($file_path, 1920, 1080);
|
||||
// optimizeImage($file_path, 1920, 1080);
|
||||
|
||||
$image_count++;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ ob_start();
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$rootPath = dirname(dirname(__DIR__));
|
||||
require_once($rootPath . "/src/config/env.php");
|
||||
require_once($rootPath . '/src/config/functions.php');
|
||||
require_once($rootPath . '/src/config/connection.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user