Page MenuHomePhabricator

D11991.id40079.diff
No OneTemporary

D11991.id40079.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
Sat, Nov 23, 12:22 PM (18 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2570565
Default Alt Text
D11991.id40079.diff (1 KB)

Event Timeline