Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian
b4877d16da 1.248.6 2026-02-01 01:43:53 +01:00
DebaucheryLibrarian
b61bc1ad3b Fixed shoot ID in update query. 2026-02-01 01:43:51 +01:00
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.248.5",
"version": "1.248.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.248.5",
"version": "1.248.6",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

@@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.248.5",
"version": "1.248.6",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

@@ -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),