Node.js based forum software built for the modern web
fix: upgrade script
Barış Soner Uşaklı55be42026cbd
diff --git a/src/upgrades/1.19.3/fix_user_uploads_zset.js b/src/upgrades/1.19.3/fix_user_uploads_zset.jsindex 268509ff8b..b86a83e561 100644--- a/src/upgrades/1.19.3/fix_user_uploads_zset.js+++ b/src/upgrades/1.19.3/fix_user_uploads_zset.js@@ -32,7 +32,7 @@ module.exports = {);// Add uid to the upload's hash objectuploads = await db.getSortedSetMembers(key);- await db.setObjectBulk(uploads.map(relativePath => [`upload:${md5(relativePath)}`, { uid: uids[idx] }]));+ await db.setObjectBulk(uploads.map(relativePath => [`upload:${md5(relativePath)}`, { uid: uid }]));}}));}, {