Skip to content

Commit

Permalink
Make FileStoreInstallation dir creation synchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
misscoded committed Jul 14, 2021
1 parent 1a4497f commit 3fe5623
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/oauth/src/stores/file-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export class FileInstallationStore implements InstallationStore {
}

// Create Installation Directory
fs.mkdir(installationDir, { recursive: true }, (err) => {
if (err !== null) { return console.error(err); }
});
fs.mkdirSync(installationDir, { recursive: true });

try {
writeToFile(`${installationDir}/app-latest`, installationData);
Expand Down

0 comments on commit 3fe5623

Please sign in to comment.