Skip to content

Commit

Permalink
its: Fix IssueComment::from_events
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Aug 1, 2022
1 parent ad3446a commit 210f344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion its/crates/domain/src/domain/aggregate/issue_comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl IssueCommentAggregate {
for event in events.iter().skip(1) {
issue_comment = match event {
Event::Created(_) => Err(Error::InvalidEventSequence),
Event::Deleted(_) => todo!(),
Event::Deleted(_) => Ok(issue_comment.delete()?),
Event::Updated(IssueCommentUpdated { text, .. }) => {
Ok(issue_comment.update(text.clone())?)
}
Expand Down

0 comments on commit 210f344

Please sign in to comment.