Skip to content
Snippets Groups Projects
Commit a4ae956a authored by kaniini's avatar kaniini
Browse files

boot: cleanup resolveStaffAccounts

parent 6dfe3cc9
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!985Feature/about page
Pipeline #19795 passed
......@@ -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 })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment