mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
fix: 补全备份列表返回信息 (#575)
This commit is contained in:
parent
ab0f4380b2
commit
e746a959af
@ -53,6 +53,7 @@ func NewIBackupService() IBackupService {
|
||||
func (u *BackupService) List() ([]dto.BackupInfo, error) {
|
||||
ops, err := backupRepo.List(commonRepo.WithOrderBy("created_at desc"))
|
||||
var dtobas []dto.BackupInfo
|
||||
dtobas = append(dtobas, u.loadByType("LOCAL", ops))
|
||||
dtobas = append(dtobas, u.loadByType("OSS", ops))
|
||||
dtobas = append(dtobas, u.loadByType("S3", ops))
|
||||
dtobas = append(dtobas, u.loadByType("SFTP", ops))
|
||||
|
Loading…
x
Reference in New Issue
Block a user