We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e8c79 commit a7ec06eCopy full SHA for a7ec06e
1 file changed
agent/app/service/cronjob_backup.go
@@ -309,12 +309,13 @@ func loadDbsForJob(cronjob model.Cronjob) []DatabaseHelper {
309
var dbs []DatabaseHelper
310
if cronjob.DBName == "all" {
311
if cronjob.DBType == "mysql" || cronjob.DBType == "mariadb" {
312
- mysqlItems, _ := mysqlRepo.List()
+ databaseService := NewIDatabaseService()
313
+ mysqlItems, _ := databaseService.LoadItems(cronjob.DBType)
314
for _, mysql := range mysqlItems {
315
dbs = append(dbs, DatabaseHelper{
316
ID: mysql.ID,
317
DBType: cronjob.DBType,
- Database: mysql.MysqlName,
318
+ Database: mysql.Name,
319
Name: mysql.Name,
320
})
321
}
0 commit comments