wip
This commit is contained in:
@ -45,7 +45,7 @@ import { ILocalUser } from '../../../../../models/user';
|
||||
/**
|
||||
* Show a session
|
||||
*/
|
||||
module.exports = (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
|
||||
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
|
||||
// Get 'token' parameter
|
||||
const [token, tokenErr] = $.str.get(params.token);
|
||||
if (tokenErr) return rej('invalid token param');
|
||||
|
Reference in New Issue
Block a user