Merge pull request #119 from 67P/bugfix/fix-kit-deployment

Fix apps lookup
This commit is contained in:
Basti 2019-04-25 21:10:04 +01:00 committed by GitHub
commit db566a581f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,9 @@ module.exports = async function(callback) {
} }
console.log(`Using DAOFactory at: ${daoFactory.address}`) console.log(`Using DAOFactory at: ${daoFactory.address}`)
const apps = fs.readdirSync('./apps') const apps = fs.readdirSync('./apps', { withFileTypes: true })
.filter(e => e.isDirectory())
.map(e => e.name);
console.log(`Found apps: [${apps}].${apm}`) console.log(`Found apps: [${apps}].${apm}`)
let appIds = {} let appIds = {}
apps.sort().forEach((app) => { apps.sort().forEach((app) => {