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'
|
||||
ELSE scraped_services.status
|
||||
END,
|
||||
raw_data = scraped_services.raw_data || EXCLUDED.raw_data,
|
||||
is_urgent = scraped_services.is_urgent OR EXCLUDED.is_urgent
|
||||
raw_data = scraped_services.raw_data || EXCLUDED.raw_data
|
||||
RETURNING id, automation_status, (xmax = 0) AS is_new
|
||||
`, [req.user.accountId, provider, ref, scraperStatus, JSON.stringify(svc), esUrgente]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user