fix: use parameterized query for key lookup

This commit is contained in:
Barış Soner Uşaklı
2025-09-17 10:50:35 -04:00
parent f7c4742987
commit 6cca55e37f

View File

@@ -85,7 +85,8 @@ module.exports = function (module) {
text: ` text: `
SELECT o."_key" SELECT o."_key"
FROM "legacy_object_live" o FROM "legacy_object_live" o
WHERE o."_key" LIKE '${match}'`, WHERE o."_key" LIKE $1`,
values: [match],
}); });
return res.rows.map(r => r._key); return res.rows.map(r => r._key);