mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -25,12 +25,10 @@ uploadsController.get = async function (req, res, next) {
|
||||
db.getSortedSetRevRange(`uid:${userData.uid}:uploads`, start, stop),
|
||||
]);
|
||||
|
||||
userData.uploads = uploadNames.map(function (uploadName) {
|
||||
return {
|
||||
name: uploadName,
|
||||
url: nconf.get('upload_url') + uploadName,
|
||||
};
|
||||
});
|
||||
userData.uploads = uploadNames.map(uploadName => ({
|
||||
name: uploadName,
|
||||
url: nconf.get('upload_url') + uploadName,
|
||||
}));
|
||||
const pageCount = Math.ceil(itemCount / itemsPerPage);
|
||||
userData.pagination = pagination.create(page, pageCount, req.query);
|
||||
userData.privateUploads = meta.config.privateUploads === 1;
|
||||
|
||||
Reference in New Issue
Block a user