Minor fixes

main
Yasen Pramatarov 2025-11-13 19:47:53 +02:00
parent 619476e799
commit 51a9f75429
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ if ($action !== '') {
$migrationsDir = __DIR__ . '/../../doc/database/migrations';
$runner = new \App\Core\MigrationRunner($db, $migrationsDir);
$applied = $runner->applyPendingMigrations();
// Clean up any test migration files after applying
if (!empty($applied)) {
foreach ($applied as $migration) {

View File

@ -49,7 +49,7 @@ function isCacheExpired($agentId) {
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// Apply rate limiting for adding new contacts
require '../app/includes/rate_limit_middleware.php';
require_once '../app/includes/rate_limit_middleware.php';
checkRateLimit($db, 'contact', $userId);
// Validate agent ID for POST operations