Browse Source

refactor: 调整包引用 (#6758)

pull/6765/head
1 month ago committed by GitHub
parent
commit
425892cfc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      backend/app/service/clam.go

3
backend/app/service/clam.go

@ -21,7 +21,6 @@ import (
"github.com/1Panel-dev/1Panel/backend/utils/common"
"github.com/1Panel-dev/1Panel/backend/utils/systemctl"
"github.com/1Panel-dev/1Panel/backend/utils/xpack"
"github.com/1Panel-dev/1Panel/backend/xpack/utils/alert"
"github.com/jinzhu/copier"
"github.com/robfig/cron/v3"
@ -644,7 +643,7 @@ func handleAlert(stdout, clamName string, clamId uint) {
EntryID: clamId,
Param: strconv.Itoa(infectedFiles),
}
err := alert.PushAlert(pushAlert)
err := xpack.PushAlert(pushAlert)
if err != nil {
global.LOG.Errorf("clamdscan push failed, err: %v", err)
}

Loading…
Cancel
Save