Actualizar server.js

This commit is contained in:
2026-02-16 07:47:37 +00:00
parent 09be1b75f9
commit 572a7c7c72

View File

@@ -371,8 +371,8 @@ app.post("/public/assignment/respond", async (req, res) => {
`, [ping.user_id, ping.scraped_id]); `, [ping.user_id, ping.scraped_id]);
} else { } else {
await client.query("UPDATE assignment_pings SET status = 'rejected', expires_at = NOW() WHERE id = $1", [ping.id]);             await client.query("UPDATE assignment_pings SET status = 'rejected', expires_at = $2 WHERE id = $1", [ping.id, new Date()]);
}         }
await client.query('COMMIT'); await client.query('COMMIT');
res.json({ ok: true }); res.json({ ok: true });