未验证 提交 86adcc7f 编写于 作者: D Daniel Imms 提交者: GitHub

Merge pull request #64611 from Microsoft/tyriar/64598

Convert backup tpromise.join to promise.all
...@@ -55,7 +55,7 @@ export class BackupFilesModel implements IBackupFilesModel { ...@@ -55,7 +55,7 @@ export class BackupFilesModel implements IBackupFilesModel {
return pfs.readDirsInDir(backupRoot).then(backupSchemas => { return pfs.readDirsInDir(backupRoot).then(backupSchemas => {
// For all supported schemas // For all supported schemas
return TPromise.join(backupSchemas.map(backupSchema => { return Promise.all(backupSchemas.map(backupSchema => {
// Read backup directory for backups // Read backup directory for backups
const backupSchemaPath = path.join(backupRoot, backupSchema); const backupSchemaPath = path.join(backupRoot, backupSchema);
...@@ -206,7 +206,7 @@ export class BackupFileService implements IBackupFileService { ...@@ -206,7 +206,7 @@ export class BackupFileService implements IBackupFileService {
); );
}); });
return TPromise.join(readPromises); return Promise.all(readPromises);
}); });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册