mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
fix: upgrade script
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = {
|
|||||||
);
|
);
|
||||||
// Add uid to the upload's hash object
|
// Add uid to the upload's hash object
|
||||||
uploads = await db.getSortedSetMembers(key);
|
uploads = 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 }]));
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
Reference in New Issue
Block a user