"deal" with async promise executor, should be fine in these specific cases
This commit is contained in:
parent
ee066c4436
commit
bd5d5c9df7
@ -319,6 +319,7 @@ const setConfig = async ({ store }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const checkOAuthToken = async ({ store }) => {
|
const checkOAuthToken = async ({ store }) => {
|
||||||
|
// eslint-disable-next-line no-async-promise-executor
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
if (store.getters.getUserToken()) {
|
if (store.getters.getUserToken()) {
|
||||||
try {
|
try {
|
||||||
|
@ -343,6 +343,7 @@ const fetchFriends = ({ id, maxId, sinceId, limit = 20, credentials }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const exportFriends = ({ id, credentials }) => {
|
const exportFriends = ({ id, credentials }) => {
|
||||||
|
// eslint-disable-next-line no-async-promise-executor
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
try {
|
try {
|
||||||
let friends = []
|
let friends = []
|
||||||
|
Loading…
Reference in New Issue
Block a user