Browse Source

fix: 解决应用恢复计划任务执行失败的问题 (#3770)

pull/3771/head
ssongliu 10 months ago committed by GitHub
parent
commit
e3666d17a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      backend/app/service/backup.go

2
backend/app/service/backup.go

@ -83,6 +83,7 @@ func (u *BackupService) List() ([]dto.BackupInfo, error) {
func (u *BackupService) SearchRecordsWithPage(search dto.RecordSearch) (int64, []dto.BackupRecords, error) { func (u *BackupService) SearchRecordsWithPage(search dto.RecordSearch) (int64, []dto.BackupRecords, error) {
total, records, err := backupRepo.PageRecord( total, records, err := backupRepo.PageRecord(
search.Page, search.PageSize, search.Page, search.PageSize,
commonRepo.WithOrderBy("created_at desc"),
commonRepo.WithByName(search.Name), commonRepo.WithByName(search.Name),
commonRepo.WithByType(search.Type), commonRepo.WithByType(search.Type),
backupRepo.WithByDetailName(search.DetailName), backupRepo.WithByDetailName(search.DetailName),
@ -101,6 +102,7 @@ func (u *BackupService) SearchRecordsWithPage(search dto.RecordSearch) (int64, [
func (u *BackupService) SearchRecordsByCronjobWithPage(search dto.RecordSearchByCronjob) (int64, []dto.BackupRecords, error) { func (u *BackupService) SearchRecordsByCronjobWithPage(search dto.RecordSearchByCronjob) (int64, []dto.BackupRecords, error) {
total, records, err := backupRepo.PageRecord( total, records, err := backupRepo.PageRecord(
search.Page, search.PageSize, search.Page, search.PageSize,
commonRepo.WithOrderBy("created_at desc"),
backupRepo.WithByCronID(search.CronjobID), backupRepo.WithByCronID(search.CronjobID),
) )
if err != nil { if err != nil {

Loading…
Cancel
Save