chore: code formatting

This commit is contained in:
github-actions[bot]
2022-07-07 03:42:46 +00:00
parent 33a2f43c59
commit 947d45559b
18 changed files with 44 additions and 35 deletions

View File

@@ -66,10 +66,14 @@ export default async function({login, data, imports, graphql, q, queries, accoun
}
//Handle errors
catch (error) {
throw imports.format.error(error, {descriptions:{custom(error) {
if (error.errors?.map(({type}) => type)?.includes("INSUFFICIENT_SCOPES"))
return "Insufficient token scopes"
return null
}}})
throw imports.format.error(error, {
descriptions: {
custom(error) {
if (error.errors?.map(({type}) => type)?.includes("INSUFFICIENT_SCOPES"))
return "Insufficient token scopes"
return null
},
},
})
}
}