Skip to content

Commit

Permalink
Merge pull request #39 from irappa-pattar/odim-218
Browse files Browse the repository at this point in the history
ODIM:218 Corrected message and message id in the response for Aggregate.RemoveElements action
  • Loading branch information
Bharath-KKB authored Nov 9, 2020
2 parents 59cff4e + 959140b commit 1309dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svc-aggregation/system/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (e *ExternalInterface) AddElementsToAggregate(req *aggregatorproto.Aggregat
"OData-Version": "4.0",
}
aggregate, _ = agmodel.GetAggregate(aggregateURL)
commonResponse.CreateGenericResponse(response.Created)
commonResponse.CreateGenericResponse(response.Success)
resp.Body = agresponse.AggregateResponse{
Response: commonResponse,
Elements: aggregate.Elements,
Expand Down Expand Up @@ -398,7 +398,7 @@ func (e *ExternalInterface) RemoveElementsFromAggregate(req *aggregatorproto.Agg
"OData-Version": "4.0",
}
aggregate, _ = agmodel.GetAggregate(aggregateURL)
commonResponse.CreateGenericResponse(response.Created)
commonResponse.CreateGenericResponse(response.Success)
resp.Body = agresponse.AggregateResponse{
Response: commonResponse,
Elements: aggregate.Elements,
Expand Down

0 comments on commit 1309dbf

Please sign in to comment.