logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: bd5d5c9df7e39efa7ecbb1bbfbd036906d1e9535
parent ee066c4436702851cb8c2f144fed3293b532fa2c
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 31 Jul 2022 13:18:11 +0300

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

Diffstat:

Msrc/boot/after_store.js1+
Msrc/services/api/api.service.js1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/boot/after_store.js b/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 { diff --git a/src/services/api/api.service.js b/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 = []