diff --git a/src/store-releases.js b/src/store-releases.js index aace74f9..4e31379f 100755 --- a/src/store-releases.js +++ b/src/store-releases.js @@ -436,13 +436,13 @@ async function storeScenes(releases, useBatchId) { entity_id = COALESCE((new.entity->>'id')::integer, releases.entity_id), title = COALESCE(new.title, releases.title), description = COALESCE(new.description, releases.description), - shoot_id = COALESCE(new.shootId, releases.shoot_id), + shoot_id = COALESCE(new.shoot_id, releases.shoot_id), 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, comment text, deep boolean) + AS new(id int, url text, date timestamptz, entity json, title text, description text, shoot_id text, duration integer, comment text, deep boolean) WHERE releases.id = new.id `, { scenes: JSON.stringify(curatedDuplicateReleases),