fix: postgres is slow™️

v1.18.x
Julian Lam 4 years ago
parent f8dff94a15
commit 05dd859714

@ -51,7 +51,7 @@ Thumbs.associate = async function ({ id, path: relativePath, url }) {
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)
if (!isDraft && relativePath) {

Loading…
Cancel
Save