Only parse for validation

This commit is contained in:
Jake Barnby
2025-10-23 01:28:06 +13:00
parent c177d54f59
commit 9a1b5d4eee
+2 -2
View File
@@ -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());
}