From a4ae956a62f7d82db9da91c4f6516219599954f5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 9 Nov 2019 00:34:05 -0600 Subject: [PATCH] boot: cleanup resolveStaffAccounts --- src/boot/after_store.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/boot/after_store.js b/src/boot/after_store.js index bba3288c48..226b67d8ac 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -185,14 +185,9 @@ const getAppSecret = async ({ store }) => { } const resolveStaffAccounts = async ({ store, accounts }) => { - let nicknames = accounts.map(uri => uri.split('/').pop()) const backendInteractor = store.state.api.backendInteractor - - nicknames = nicknames.map(id => { - console.log('resolving staff account:', id) - return backendInteractor.fetchUser({ id }) - }) - + let nicknames = accounts.map(uri => uri.split('/').pop()) + .map(id => backendInteractor.fetchUser({ id })) nicknames = await Promise.all(nicknames) store.dispatch('setInstanceOption', { name: 'staffAccounts', value: nicknames })