Fix apps lookup #119

Merged
bumi merged 2 commits from bugfix/fix-kit-deployment into master 2019-04-25 20:10:05 +00:00
bumi commented 2019-04-25 14:47:46 +00:00 (Migrated from github.com)

We use the directories in ./apps to load available app names.
For this we need to make sure that we only use directories.

Some recent change broke this by adding a file in the apps directory.
So without this fix no DAO can be deployed.

We use the directories in ./apps to load available app names. For this we need to make sure that we only use directories. Some recent change broke this by adding a file in the apps directory. So without this fix no DAO can be deployed.
raucao (Migrated from github.com) reviewed 2019-04-25 14:59:04 +00:00
raucao (Migrated from github.com) commented 2019-04-25 14:59:04 +00:00
  const apps = fs.readdirSync('./apps', { withFileTypes: true })
                 .filter(e => e.isDirectory())
                 .map(e => e.name);
```suggestion const apps = fs.readdirSync('./apps', { withFileTypes: true }) .filter(e => e.isDirectory()) .map(e => e.name); ```
Sign in to join this conversation.
No description provided.