Skip to content

Commit

Permalink
refactor: rename Content to CreationContent in request to create a re…
Browse files Browse the repository at this point in the history
…lationship
  • Loading branch information
tnotheis committed Apr 5, 2024
1 parent af4f129 commit d6ae441
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ namespace Backbone.Modules.Relationships.Application.Relationships.Commands.Crea
public class CreateRelationshipCommand : IRequest<CreateRelationshipResponse>
{
public required string RelationshipTemplateId { get; set; }
public byte[]? Content { get; set; }
public byte[]? CreationContent { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public class CreateRelationshipCommandValidator : AbstractValidator<CreateRelati
public CreateRelationshipCommandValidator()
{
RuleFor(c => c.RelationshipTemplateId).DetailedNotEmpty();
RuleFor(c => c.Content).NumberOfBytes(0, 10.Mebibytes());
RuleFor(c => c.CreationContent).NumberOfBytes(0, 10.Mebibytes());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private async Task CreateAndSaveRelationship()
_template,
_activeIdentity,
_activeDevice,
_request.Content,
_request.CreationContent,
existingRelationships.ToList()
);

Expand Down

0 comments on commit d6ae441

Please sign in to comment.