Skip to content

Commit

Permalink
392: Fix response of PUT user-defined-metadata. (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorntore authored Aug 7, 2024
1 parent 8753b92 commit 3d3d359
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ [FromBody] UserDefinedMetadataDto userDefinedMetadataDto
dataElement.UserDefinedMetadata = userDefinedMetadataDto.UserDefinedMetadata;
dataElement = await _dataClient.Update(instance, dataElement);

return Ok(dataElement.UserDefinedMetadata);
UserDefinedMetadataDto responseUserDefinedMetadataDto =
new() { UserDefinedMetadata = dataElement.UserDefinedMetadata };

return responseUserDefinedMetadataDto;
}

private static List<string> FindNotAllowedKeys(
Expand Down

0 comments on commit 3d3d359

Please sign in to comment.