mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
add publish tip
This commit is contained in:
@@ -163,6 +163,9 @@ func (m *imlReleaseModule) Create(ctx context.Context, serviceId string, input *
|
||||
|
||||
doc, err := m.apiDocService.GetDoc(ctx, serviceId)
|
||||
if err != nil {
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
return fmt.Errorf("api doc not found")
|
||||
}
|
||||
return err
|
||||
}
|
||||
err = m.apiDocService.CommitDoc(ctx, serviceId, doc)
|
||||
@@ -188,7 +191,7 @@ func (m *imlReleaseModule) Create(ctx context.Context, serviceId string, input *
|
||||
}
|
||||
serviceDocCommit, err := m.serviceDocService.LatestDocCommit(ctx, serviceId)
|
||||
if err != nil {
|
||||
|
||||
return err
|
||||
}
|
||||
if !m.releaseService.Completeness(utils.SliceToSlice(clusters, func(s *cluster.Cluster) string {
|
||||
return s.Uuid
|
||||
|
||||
Reference in New Issue
Block a user