mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
start upgrading eslint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
let api = {};
|
||||
const api = {};
|
||||
|
||||
api.redirectProfileQRCode = {
|
||||
method: 'GET',
|
||||
@@ -7,7 +7,7 @@ api.redirectProfileQRCode = {
|
||||
async handler (req, res) {
|
||||
req.checkParams('memberid', res.t('memberIdRequired')).notEmpty().isUUID();
|
||||
|
||||
let validationErrors = req.validationErrors();
|
||||
const validationErrors = req.validationErrors();
|
||||
if (validationErrors) throw validationErrors;
|
||||
|
||||
res.redirect(301, `/static/front/#?memberId=${req.params.memberid}`);
|
||||
|
||||
Reference in New Issue
Block a user