Skip to content

Commit

Permalink
Merge pull request #478 from ucdavis/JCS/UpdateClusterFields
Browse files Browse the repository at this point in the history
Update some cluster info
  • Loading branch information
jSylvestre authored Sep 17, 2024
2 parents 3db33d8 + 1e49863 commit 5272d3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Hippo.Web/Controllers/ClusterAdminController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ public async Task<IActionResult> Update([FromBody] ClusterModel clusterModel)
.ToListAsync();
cluster.AccessTypes = accessTypes;

//Don't update the name of the cluster, would break things?
cluster.Description = clusterModel.Description;
cluster.Email = clusterModel.Email;

_dbContext.Clusters.Update(cluster);
await _dbContext.SaveChangesAsync();

Expand Down

0 comments on commit 5272d3e

Please sign in to comment.