🐛 (refresh) refresh correct token

This commit is contained in:
Julien Calixte
2021-05-02 18:33:46 +02:00
parent 56432d81c8
commit d33fa18b9c
5 changed files with 64 additions and 37 deletions

View File

@@ -28,10 +28,8 @@ export const useUserRepoStore = defineStore({
async setUserRepo(newUser: string, newRepo: string) {
this.user = newUser
this.repo = newRepo
const [readme, files] = await Promise.all([
getMainReadme(newUser, newRepo),
getFiles(newUser, newRepo)
])
const readme = await getMainReadme(newUser, newRepo)
const files = await getFiles(newUser, newRepo)
this.userSettings = await getUserSettingsContent(newUser, newRepo, files)
this.readme = readme