From 883a84b31306f2725737ee408900e20b57dbfdf6 Mon Sep 17 00:00:00 2001 From: taehoon Date: Thu, 21 Mar 2019 21:30:30 -0400 Subject: [PATCH] =?UTF-8?q?No=20need=20to=20fetch=20user=20data=20using=20?= =?UTF-8?q?old=20api=20anymore=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/users.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/modules/users.js b/src/modules/users.js index d75ac9d4..83c90ea5 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -212,11 +212,6 @@ const users = { }, fetchMutes (store) { return store.rootState.api.backendInteractor.fetchMutes() - .then((mutes) => { - // fetchMutes api doesn't return full user data, let's fetch full user data using separate api calls - const promises = mutes.map(({ id }) => store.rootState.api.backendInteractor.fetchUser({ id })) - return Promise.all(promises) - }) .then((mutes) => { store.commit('updateMutes', mutes) store.commit('saveMuteIds', map(mutes, 'id'))