Skip to content

Commit

Permalink
shuffling order
Browse files Browse the repository at this point in the history
  • Loading branch information
karnthis committed Feb 20, 2024
1 parent a2f8b96 commit a41a37a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,12 @@ class BStore implements IBStore {
const sanity: string[] = []
if (!(await this.globalFileIo.detectFolder(['s', workspace, 'drafts'].join('/')))) sanity.push('drafts')
if (!(await this.globalFileIo.detectFolder(['s', workspace, 'published'].join('/')))) sanity.push('published')

await this.fetchWorkspaceFolder()
if (sanity.length) {
await this.globalFileIo.createFolders(this.workspaceFolder, sanity)
}

await this.fetchWorkspaceFolder()
await this.fetchDraftsFolder()
await this.fetchPublishedFolder()
} else {
Expand Down

0 comments on commit a41a37a

Please sign in to comment.