From 52d4f0b6e0d91e2f902abd143e4a779a3987bdf2 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 5 Oct 2026 07:21:40 -0600 Subject: [PATCH] fix: cleanup query --- scripts/cleanup_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cleanup_test.js b/scripts/cleanup_test.js index 124fdbc..3e56b18 100644 --- a/scripts/cleanup_test.js +++ b/scripts/cleanup_test.js @@ -3,7 +3,7 @@ const { Client } = require('pg'); async function clean() { const client = new Client({ connectionString: 'postgresql://postgres:GammaPos2026@127.0.0.1:5432/recreopay_db' }); await client.connect(); - await client.query("DELETE FROM transacciones_saldo WHERE motivo = 'test PIN correcto' OR descripcion LIKE '%test PIN correcto%'"); + await client.query("DELETE FROM transacciones_saldo WHERE descripcion LIKE '%test PIN correcto%'"); await client.query('UPDATE estudiantes SET saldo_colones = 4500 WHERE id = 2'); await client.query('UPDATE estudiantes SET saldo_colones = 1500 WHERE id = 1'); const res = await client.query('SELECT id, nombre_completo, saldo_colones FROM estudiantes WHERE id IN (1, 2) ORDER BY id');