Page MenuHomePhabricator

D11991.diff
No OneTemporary

D11991.diff

diff --git a/keyserver/src/updaters/upload-updaters.js b/keyserver/src/updaters/upload-updaters.js
--- a/keyserver/src/updaters/upload-updaters.js
+++ b/keyserver/src/updaters/upload-updaters.js
@@ -15,8 +15,11 @@
const query = SQL`
UPDATE uploads
SET container = ${containerID}, thread = ${threadID}
- WHERE id IN (${mediaIDs}) AND uploader = ${viewer.id}
- AND container IS NULL AND thread IS NULL
+ WHERE id IN (${mediaIDs})
+ AND uploader = ${viewer.id}
+ AND container IS NULL
+ AND user_container IS NULL
+ AND thread IS NULL
`;
await dbQuery(query);
}
@@ -32,8 +35,11 @@
const query = SQL`
UPDATE uploads
SET container = ${containerID}, thread = ${threadID}
- WHERE id IN (${uploadIDs}) AND uploader = ${viewer.id}
- AND container IS NULL AND thread IS NULL
+ WHERE id IN (${uploadIDs})
+ AND uploader = ${viewer.id}
+ AND container IS NULL
+ AND user_container IS NULL
+ AND thread IS NULL
`;
await dbQuery(query);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 2:20 AM (5 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2559375
Default Alt Text
D11991.diff (1 KB)

Event Timeline