Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3347455
D11991.id40079.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11991.id40079.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11991: [keyserver] Update upload assigners to check new user_container column
Attached
Detach File
Event Timeline
Log In to Comment