mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-03-12 08:27:25 +08:00
fix: Fix fatabase backup cronjobimport failures (#9731)
This commit is contained in:
parent
bf9a9bf17a
commit
4565c5b300
1 changed files with 2 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ func (u *CronjobService) Import(req []dto.CronjobTrans) error {
|
|||
break
|
||||
}
|
||||
var dbIDs []string
|
||||
if cronjob.DBType == "postgresql" {
|
||||
if strings.Contains(cronjob.DBType, "postgresql") {
|
||||
for _, db := range item.DBNames {
|
||||
dbItem, err := postgresqlRepo.Get(postgresqlRepo.WithByPostgresqlName(db.Name), repo.WithByName(db.DetailName))
|
||||
if err != nil {
|
||||
|
|
@ -323,6 +323,7 @@ func (u *CronjobService) Import(req []dto.CronjobTrans) error {
|
|||
hasNotFound = true
|
||||
break
|
||||
}
|
||||
cronjob.SourceDir = item.SourceDir
|
||||
} else {
|
||||
fileList := strings.Split(item.SourceDir, ",")
|
||||
var newFiles []string
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue