Skip to content

Commit 142c9b9

Browse files
fix: Fixed issue with build backend failed (#12199)
1 parent f3c7603 commit 142c9b9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

agent/app/service/agents.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/1Panel-dev/1Panel/agent/utils/common"
2828
"github.com/1Panel-dev/1Panel/agent/utils/files"
2929
"github.com/1Panel-dev/1Panel/agent/utils/req_helper"
30-
"github.com/1Panel-dev/1Panel/agent/xpack/xglobal"
30+
"github.com/1Panel-dev/1Panel/agent/utils/xpack"
3131
)
3232

3333
type AgentService struct{}
@@ -99,7 +99,7 @@ func (a AgentService) Create(req dto.AgentCreateReq) (*dto.AgentItem, error) {
9999
if installs, _ := appInstallRepo.ListBy(context.Background(), repo.WithByLowerName(req.Name)); len(installs) > 0 {
100100
return nil, buserr.New("ErrNameIsExist")
101101
}
102-
if !xglobal.IsXpack {
102+
if !xpack.IsXpack() {
103103
count, _, err := agentRepo.Page(1, 1)
104104
if err != nil {
105105
return nil, err

agent/utils/xpack/community.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ func IsUseCustomApp() bool {
3939
return false
4040
}
4141

42+
func IsXpack() bool {
43+
return false
44+
}
45+
4246
func CreateTaskScanSMSAlertLog(alert dto.AlertDTO, alertType string, create dto.AlertLogCreate, pushAlert dto.PushAlert, method string) error {
4347
return nil
4448
}

0 commit comments

Comments
 (0)