remove duplicate require
This commit is contained in:
@@ -111,8 +111,6 @@ async function del(req, res, next) {
|
||||
next(new HttpSuccess(204));
|
||||
}
|
||||
|
||||
const tokens = require('../tokens.js');
|
||||
|
||||
async function dashboardLoginCallback(req, res, next) {
|
||||
const [error, token] = await safe(tokens.add({ clientId: tokens.ID_WEBADMIN, identifier: req.user.id, expires: Date.now() + constants.DEFAULT_TOKEN_EXPIRATION_MSECS }));
|
||||
if (error) return next(new HttpError(500, error));
|
||||
|
||||
Reference in New Issue
Block a user