mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: postgres is slow™️
This commit is contained in:
@@ -51,7 +51,7 @@ Thumbs.associate = async function ({ id, path: relativePath, url }) {
|
|||||||
value = value.replace(nconf.get('upload_path'), '');
|
value = value.replace(nconf.get('upload_path'), '');
|
||||||
}
|
}
|
||||||
|
|
||||||
db.sortedSetAdd(set, numThumbs, value);
|
await db.sortedSetAdd(set, numThumbs, value);
|
||||||
|
|
||||||
// Associate thumbnails with the main pid (only on local upload)
|
// Associate thumbnails with the main pid (only on local upload)
|
||||||
if (!isDraft && relativePath) {
|
if (!isDraft && relativePath) {
|
||||||
|
|||||||
Reference in New Issue
Block a user