Use any instead of Object
This commit is contained in:
@ -16,7 +16,7 @@ import AccessToken from '../../models/access-token';
|
||||
* summary: Accept a session
|
||||
* parameters:
|
||||
* - $ref: "#/parameters/NativeToken"
|
||||
* -
|
||||
* -
|
||||
* name: token
|
||||
* description: Session Token
|
||||
* in: formData
|
||||
@ -25,7 +25,7 @@ import AccessToken from '../../models/access-token';
|
||||
* responses:
|
||||
* 204:
|
||||
* description: OK
|
||||
*
|
||||
*
|
||||
* default:
|
||||
* description: Failed
|
||||
* schema:
|
||||
@ -35,9 +35,9 @@ import AccessToken from '../../models/access-token';
|
||||
/**
|
||||
* Accept
|
||||
*
|
||||
* @param {Object} params
|
||||
* @param {Object} user
|
||||
* @return {Promise<object>}
|
||||
* @param {any} params
|
||||
* @param {any} user
|
||||
* @return {Promise<any>}
|
||||
*/
|
||||
module.exports = (params, user) =>
|
||||
new Promise(async (res, rej) =>
|
||||
|
@ -20,7 +20,7 @@ import config from '../../../../conf';
|
||||
* in: formData
|
||||
* required: true
|
||||
* type: string
|
||||
*
|
||||
*
|
||||
* responses:
|
||||
* 200:
|
||||
* description: OK
|
||||
@ -42,8 +42,8 @@ import config from '../../../../conf';
|
||||
/**
|
||||
* Generate a session
|
||||
*
|
||||
* @param {Object} params
|
||||
* @return {Promise<object>}
|
||||
* @param {any} params
|
||||
* @return {Promise<any>}
|
||||
*/
|
||||
module.exports = (params) =>
|
||||
new Promise(async (res, rej) =>
|
||||
|
@ -18,11 +18,11 @@ import serialize from '../../../serializers/auth-session';
|
||||
* in: formData
|
||||
* required: true
|
||||
* type: string
|
||||
*
|
||||
*
|
||||
* responses:
|
||||
* 200:
|
||||
* description: OK
|
||||
* schema:
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* created_at:
|
||||
@ -49,9 +49,9 @@ import serialize from '../../../serializers/auth-session';
|
||||
/**
|
||||
* Show a session
|
||||
*
|
||||
* @param {Object} params
|
||||
* @param {Object} user
|
||||
* @return {Promise<object>}
|
||||
* @param {any} params
|
||||
* @param {any} user
|
||||
* @return {Promise<any>}
|
||||
*/
|
||||
module.exports = (params, user) =>
|
||||
new Promise(async (res, rej) =>
|
||||
|
@ -47,8 +47,8 @@ import serialize from '../../../serializers/user';
|
||||
/**
|
||||
* Generate a session
|
||||
*
|
||||
* @param {Object} params
|
||||
* @return {Promise<object>}
|
||||
* @param {any} params
|
||||
* @return {Promise<any>}
|
||||
*/
|
||||
module.exports = (params) =>
|
||||
new Promise(async (res, rej) => {
|
||||
|
Reference in New Issue
Block a user