Fix apps lookup
We use the directories in ./apps to load available app names. For this we need to make sure that we only use directories.
This commit is contained in:
parent
d643e5842c
commit
b04d572b9a
@ -35,7 +35,7 @@ module.exports = async function(callback) {
|
||||
}
|
||||
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}`)
|
||||
let appIds = {}
|
||||
apps.sort().forEach((app) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user