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

@ -120,7 +120,7 @@ func (s *AiStorage) SaveAiTask(taskId int64, option *option.AiOption, clusterId
ClusterId: cId,
ClusterName: clusterName,
Name: option.TaskName,
Replica: int64(option.Replica),
Replica: int64(option.Replica),
JobId: jobId,
TaskType: option.TaskType,
Strategy: option.StrategyName,
@ -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
}