Minor fixes
parent
619476e799
commit
51a9f75429
|
|
@ -97,7 +97,7 @@ if ($action !== '') {
|
||||||
$migrationsDir = __DIR__ . '/../../doc/database/migrations';
|
$migrationsDir = __DIR__ . '/../../doc/database/migrations';
|
||||||
$runner = new \App\Core\MigrationRunner($db, $migrationsDir);
|
$runner = new \App\Core\MigrationRunner($db, $migrationsDir);
|
||||||
$applied = $runner->applyPendingMigrations();
|
$applied = $runner->applyPendingMigrations();
|
||||||
|
|
||||||
// Clean up any test migration files after applying
|
// Clean up any test migration files after applying
|
||||||
if (!empty($applied)) {
|
if (!empty($applied)) {
|
||||||
foreach ($applied as $migration) {
|
foreach ($applied as $migration) {
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ function isCacheExpired($agentId) {
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
|
|
||||||
// Apply rate limiting for adding new contacts
|
// 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);
|
checkRateLimit($db, 'contact', $userId);
|
||||||
|
|
||||||
// Validate agent ID for POST operations
|
// Validate agent ID for POST operations
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue