From 9a1b5d4eee479348f26ff474886bb00cd46aba71 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 23 Oct 2025 01:28:06 +1300 Subject: [PATCH] Only parse for validation --- app/controllers/api/migrations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/migrations.php b/app/controllers/api/migrations.php index ccd121f48f..2256247684 100644 --- a/app/controllers/api/migrations.php +++ b/app/controllers/api/migrations.php @@ -502,7 +502,7 @@ App::post('/v1/migrations/csv/exports') Migration $queueForMigrations ) { try { - $queries = Query::parseQueries($queries); + $parsedQueries = Query::parseQueries($queries); } catch (QueryException $e) { throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } @@ -536,7 +536,7 @@ App::post('/v1/migrations/csv/exports') idAttributeType: $dbForProject->getAdapter()->getIdAttributeType(), ); - if (!$validator->isValid($queries)) { + if (!$validator->isValid($parsedQueries)) { throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); }