Explorar o código

"deal" with async promise executor, should be fine in these specific cases

Henry Jameson %!s(int64=2) %!d(string=hai) anos
pai
achega
bd5d5c9df7
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      src/boot/after_store.js
  2. 1 0
      src/services/api/api.service.js

+ 1 - 0
src/boot/after_store.js

@@ -319,6 +319,7 @@ const setConfig = async ({ store }) => {
 }
 
 const checkOAuthToken = async ({ store }) => {
+  // eslint-disable-next-line no-async-promise-executor
   return new Promise(async (resolve, reject) => {
     if (store.getters.getUserToken()) {
       try {

+ 1 - 0
src/services/api/api.service.js

@@ -343,6 +343,7 @@ const fetchFriends = ({ id, maxId, sinceId, limit = 20, credentials }) => {
 }
 
 const exportFriends = ({ id, credentials }) => {
+  // eslint-disable-next-line no-async-promise-executor
   return new Promise(async (resolve, reject) => {
     try {
       let friends = []