fix(xo-server/listBackupNgPartitionFiles): missing await
Strange things though, it works in dev compilation mode… Fixes #2929
This commit is contained in:
parent
7ab907a854
commit
1a9ebddcab
@ -196,7 +196,7 @@ export default class BackupNgFileRestore {
|
||||
|
||||
const entriesMap = {}
|
||||
await Promise.all(
|
||||
readdir(path).map(async name => {
|
||||
(await readdir(path)).map(async name => {
|
||||
try {
|
||||
const stats = await stat(`${path}/${name}`)
|
||||
entriesMap[stats.isDirectory() ? `${name}/` : name] = {}
|
||||
|
Loading…
Reference in New Issue
Block a user