Fixed comment field not updated. Refactored Nubiles scraper.
This commit is contained in:
@@ -437,10 +437,11 @@ async function storeScenes(releases, useBatchId) {
|
||||
title = COALESCE(new.title, releases.title),
|
||||
description = COALESCE(new.description, releases.description),
|
||||
duration = COALESCE(new.duration, releases.duration),
|
||||
comment = COALESCE(new.comment, releases.comment),
|
||||
deep = new.url IS NOT NULL,
|
||||
updated_at = NOW()
|
||||
FROM json_to_recordset(:scenes)
|
||||
AS new(id int, url text, date timestamptz, entity json, title text, description text, duration integer, deep boolean)
|
||||
AS new(id int, url text, date timestamptz, entity json, title text, description text, duration integer, comment text, deep boolean)
|
||||
WHERE releases.id = new.id
|
||||
`, {
|
||||
scenes: JSON.stringify(curatedDuplicateReleases),
|
||||
|
||||
Reference in New Issue
Block a user