fix rest service publish

This commit is contained in:
Liujian
2024-11-27 20:18:23 +08:00
parent 58f192b6e9
commit 53d895f046
4 changed files with 25 additions and 4 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ func (m *imlReleaseModule) Create(ctx context.Context, serviceId string, input *
return "", errors.New("api or document not found")
}
upstreams, err := m.upstreamService.ListLatestCommit(ctx, serviceId)
upstreams, err := m.upstreamService.ListLatestCommit(ctx, cluster.DefaultClusterID, serviceId)
if err != nil {
if errors.Is(err, gorm.ErrRecordNotFound) {
return "", errors.New("api config or document not found")