fix: upgrade script

This commit is contained in:
Barış Soner Uşaklı
2022-03-18 12:50:49 -04:00
parent dab22d5fd0
commit 55be42026c

View File

@@ -32,7 +32,7 @@ module.exports = {
);
// Add uid to the upload's hash object
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 }]));
}
}));
}, {