Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: f8d094ff122700a414fa4dbca9ec484985192779
This commit is contained in:
jagger 2024-05-21 18:43:41 +08:00
parent 0e479bba2b
commit c8a3734d74
1 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ func (s *AiStorage) SaveClusterResources(clusterId string, clusterName string, c
} }
func (s *AiStorage) UpdateClusterResources(clusterResource *models.TClusterResource) error { func (s *AiStorage) UpdateClusterResources(clusterResource *models.TClusterResource) error {
tx := s.DbEngin.Updates(clusterResource) tx := s.DbEngin.Model(clusterResource).Updates(clusterResource)
if tx.Error != nil { if tx.Error != nil {
return tx.Error return tx.Error
} }