提交 51c8c8c4 编写于 作者: D Daniel Imms

Convert backup tpromise.join to promise.all

Part of #64598
上级 6dcd4366
......@@ -55,7 +55,7 @@ export class BackupFilesModel implements IBackupFilesModel {
return pfs.readDirsInDir(backupRoot).then(backupSchemas => {
// For all supported schemas
return TPromise.join(backupSchemas.map(backupSchema => {
return Promise.all(backupSchemas.map(backupSchema => {
// Read backup directory for backups
const backupSchemaPath = path.join(backupRoot, backupSchema);
......@@ -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.
先完成此消息的编辑!
想要评论请 注册