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

This commit is contained in:
Henry Jameson 2022-07-31 13:18:11 +03:00
commit bd5d5c9df7
2 changed files with 2 additions and 0 deletions

View file

@ -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 = []