Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
Ensure docId and OpId are 36 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
prtandrup committed Nov 21, 2022
1 parent efbf0ea commit c5df8a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public ChargeInformationCommand Create(CreateChargeV1Dto createChargeV1Dto)

private DocumentDto CreateDocument(CreateChargeV1Dto charge)
{
var documentId = $"gehUI{Guid.NewGuid():N}";
var documentId = $"gehUI{Guid.NewGuid():N}"[..36];

var document = new DocumentDto(
documentId,
Expand All @@ -73,7 +73,7 @@ private DocumentDto CreateDocument(CreateChargeV1Dto charge)

private static IReadOnlyCollection<ChargeInformationOperationDto> CreateOperation(CreateChargeV1Dto charge)
{
var operationId = $"gehUI{Guid.NewGuid():N}";
var operationId = $"gehUI{Guid.NewGuid():N}"[..36];

IReadOnlyCollection<ChargeInformationOperationDto> operations = new List<ChargeInformationOperationDto>
{
Expand Down

0 comments on commit c5df8a9

Please sign in to comment.