Actualizar server.js
This commit is contained in:
@@ -1991,8 +1991,7 @@ app.post("/providers/scraped", authMiddleware, async (req, res) => {
|
|||||||
WHEN EXCLUDED.status = 'archived' THEN 'archived'
|
WHEN EXCLUDED.status = 'archived' THEN 'archived'
|
||||||
ELSE scraped_services.status
|
ELSE scraped_services.status
|
||||||
END,
|
END,
|
||||||
raw_data = scraped_services.raw_data || EXCLUDED.raw_data,
|
raw_data = scraped_services.raw_data || EXCLUDED.raw_data
|
||||||
is_urgent = scraped_services.is_urgent OR EXCLUDED.is_urgent
|
|
||||||
RETURNING id, automation_status, (xmax = 0) AS is_new
|
RETURNING id, automation_status, (xmax = 0) AS is_new
|
||||||
`, [req.user.accountId, provider, ref, scraperStatus, JSON.stringify(svc), esUrgente]);
|
`, [req.user.accountId, provider, ref, scraperStatus, JSON.stringify(svc), esUrgente]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user