mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
chore: eslint prefer-template
This commit is contained in:
committed by
Julian Lam
parent
4ee0f1459d
commit
707b55b6a5
@@ -61,5 +61,5 @@ chatsController.redirectToChat = async function (req, res, next) {
|
||||
return next();
|
||||
}
|
||||
const roomid = parseInt(req.params.roomid, 10);
|
||||
helpers.redirect(res, '/user/' + userslug + '/chats' + (roomid ? '/' + roomid : ''));
|
||||
helpers.redirect(res, `/user/${userslug}/chats${roomid ? `/${roomid}` : ''}`);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user