fix: postgres is slow™️

This commit is contained in:
Julian Lam
2020-12-09 19:23:23 -05:00
parent f8dff94a15
commit 05dd859714

View File

@@ -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) {