fix bug
Signed-off-by: jagger <cossjie@foxmail.com> Former-commit-id: f8d094ff122700a414fa4dbca9ec484985192779
This commit is contained in:
parent
0e479bba2b
commit
c8a3734d74
|
@ -218,7 +218,7 @@ func (s *AiStorage) SaveClusterResources(clusterId string, clusterName string, c
|
|||
}
|
||||
|
||||
func (s *AiStorage) UpdateClusterResources(clusterResource *models.TClusterResource) error {
|
||||
tx := s.DbEngin.Updates(clusterResource)
|
||||
tx := s.DbEngin.Model(clusterResource).Updates(clusterResource)
|
||||
if tx.Error != nil {
|
||||
return tx.Error
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue