Update dependencies 🚀
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().$; | ||||
| 	const [token, tokenErr] = $(params.token).string().get(); | ||||
| 	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().$; | ||||
| 	const [appSecret, appSecretErr] = $(params.appSecret).string().get(); | ||||
| 	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().$; | ||||
| 	const [token, tokenErr] = $(params.token).string().get(); | ||||
| 	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().$; | ||||
| 	const [appSecret, appSecretErr] = $(params.appSecret).string().get(); | ||||
| 	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().$; | ||||
| 	const [token, tokenErr] = $(params.token).string().get(); | ||||
| 	if (tokenErr) return rej('invalid token param'); | ||||
|  | ||||
| 	// Fetch token | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo