ref
This commit is contained in:
1 parent
1c66729974
commit
31a4a6f5b8
7 files changed
+15
-45
No files matched your search
@@ -161,11 +161,9 @@ func (c *config) DeleteConfigVersion(req domain.ConfigIdRequest) (*domain.Delete
|
||||
// @Router /config/get_all_version [POST]
|
||||
func (c *config) GetAllVersion(req domain.ConfigIdRequest) ([]entity.VersionConfig, error) {
|
||||
var response []entity.VersionConfig
|
||||
command := cluster.PrepareGetAllConfigVersionCommand(req.Id)
|
||||
err := PerformSyncApplyWithError(command, &response)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
c.rstore.VisitReadonlyState(func(state state.ReadonlyState) {
|
||||
response = state.VersionConfig().GetByConfigId(req.Id)
|
||||
})
|
||||
return response, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user