Actualizar server.js
This commit is contained in:
@@ -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 });
|
||||||
|
|||||||
Reference in New Issue
Block a user