Refactored frontend to work with the latest mooncore changes
This commit is contained in:
@@ -135,7 +135,7 @@ public class StarDockerImagesController : Controller
|
||||
if (dockerImage == null)
|
||||
throw new HttpApiException("No star docker image with this id found", 404);
|
||||
|
||||
dockerImage = DockerImageMapper.Merge(request, dockerImage);
|
||||
DockerImageMapper.Merge(request, dockerImage);
|
||||
await DockerImageRepository.Update(dockerImage);
|
||||
|
||||
return DockerImageMapper.ToAdminResponse(dockerImage);
|
||||
|
||||
@@ -133,7 +133,7 @@ public class StarVariablesController : Controller
|
||||
if (starVariable == null)
|
||||
throw new HttpApiException("No variable with this id found", 404);
|
||||
|
||||
starVariable = StarVariableMapper.Merge(request, starVariable);
|
||||
StarVariableMapper.Merge(request, starVariable);
|
||||
await VariableRepository.Update(starVariable);
|
||||
|
||||
return StarVariableMapper.ToAdminResponse(starVariable);
|
||||
|
||||
@@ -106,7 +106,7 @@ public class StarsController : Controller
|
||||
if (star == null)
|
||||
throw new HttpApiException("No star with that id found", 404);
|
||||
|
||||
star = StarMapper.Merge(request, star);
|
||||
StarMapper.Merge(request, star);
|
||||
await StarRepository.Update(star);
|
||||
|
||||
return StarMapper.ToAdminResponse(star);
|
||||
|
||||
Reference in New Issue
Block a user