Fix: Add env.php include to delete_trip and toggle_trip_published processors

This commit is contained in:
twotalesanimation
2025-12-04 17:31:27 +02:00
parent bfb3a0f8a9
commit d81d74a7c7
9 changed files with 3 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

View File

@@ -3,6 +3,7 @@ ob_start();
header('Content-Type: application/json'); header('Content-Type: application/json');
$rootPath = dirname(dirname(__DIR__)); $rootPath = dirname(dirname(__DIR__));
require_once($rootPath . "/src/config/env.php");
require_once($rootPath . '/src/config/functions.php'); require_once($rootPath . '/src/config/functions.php');
require_once($rootPath . '/src/config/connection.php'); require_once($rootPath . '/src/config/connection.php');

View File

@@ -160,7 +160,7 @@ try {
} }
// Optimize image (resize if too large) // Optimize image (resize if too large)
optimizeImage($file_path, 1920, 1080); // optimizeImage($file_path, 1920, 1080);
$image_count++; $image_count++;
} }

View File

@@ -3,6 +3,7 @@ ob_start();
header('Content-Type: application/json'); header('Content-Type: application/json');
$rootPath = dirname(dirname(__DIR__)); $rootPath = dirname(dirname(__DIR__));
require_once($rootPath . "/src/config/env.php");
require_once($rootPath . '/src/config/functions.php'); require_once($rootPath . '/src/config/functions.php');
require_once($rootPath . '/src/config/connection.php'); require_once($rootPath . '/src/config/connection.php');