Update cafy to 8.0.0 🚀
This commit is contained in:
		@@ -40,7 +40,7 @@ import AccessToken from '../../../../models/access-token';
 | 
			
		||||
 */
 | 
			
		||||
module.exports = (params, user) => new Promise(async (res, rej) => {
 | 
			
		||||
	// Get 'token' parameter
 | 
			
		||||
	const [token, tokenErr] = $(params.token).string().get();
 | 
			
		||||
	const [token, tokenErr] = $.str.get(params.token);
 | 
			
		||||
	if (tokenErr) return rej('invalid token param');
 | 
			
		||||
 | 
			
		||||
	// Fetch token
 | 
			
		||||
 
 | 
			
		||||
@@ -46,7 +46,7 @@ import config from '../../../../../config';
 | 
			
		||||
 */
 | 
			
		||||
module.exports = (params) => new Promise(async (res, rej) => {
 | 
			
		||||
	// Get 'appSecret' parameter
 | 
			
		||||
	const [appSecret, appSecretErr] = $(params.appSecret).string().get();
 | 
			
		||||
	const [appSecret, appSecretErr] = $.str.get(params.appSecret);
 | 
			
		||||
	if (appSecretErr) return rej('invalid appSecret param');
 | 
			
		||||
 | 
			
		||||
	// Lookup app
 | 
			
		||||
 
 | 
			
		||||
@@ -53,7 +53,7 @@ import AuthSess, { pack } from '../../../../../models/auth-session';
 | 
			
		||||
 */
 | 
			
		||||
module.exports = (params, user) => new Promise(async (res, rej) => {
 | 
			
		||||
	// Get 'token' parameter
 | 
			
		||||
	const [token, tokenErr] = $(params.token).string().get();
 | 
			
		||||
	const [token, tokenErr] = $.str.get(params.token);
 | 
			
		||||
	if (tokenErr) return rej('invalid token param');
 | 
			
		||||
 | 
			
		||||
	// Lookup session
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@ import { pack } from '../../../../../models/user';
 | 
			
		||||
 */
 | 
			
		||||
module.exports = (params) => new Promise(async (res, rej) => {
 | 
			
		||||
	// Get 'appSecret' parameter
 | 
			
		||||
	const [appSecret, appSecretErr] = $(params.appSecret).string().get();
 | 
			
		||||
	const [appSecret, appSecretErr] = $.str.get(params.appSecret);
 | 
			
		||||
	if (appSecretErr) return rej('invalid appSecret param');
 | 
			
		||||
 | 
			
		||||
	// Lookup app
 | 
			
		||||
@@ -64,7 +64,7 @@ module.exports = (params) => new Promise(async (res, rej) => {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Get 'token' parameter
 | 
			
		||||
	const [token, tokenErr] = $(params.token).string().get();
 | 
			
		||||
	const [token, tokenErr] = $.str.get(params.token);
 | 
			
		||||
	if (tokenErr) return rej('invalid token param');
 | 
			
		||||
 | 
			
		||||
	// Fetch token
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user