fix: NewRemoteReview param struct, atomic review+orphan movie delete

This commit is contained in:
2026-10-26 01:19:09 +01:00
parent 9a4d0c1714
commit 7f9c252d35
18 changed files with 261 additions and 116 deletions

View File

@@ -107,9 +107,11 @@ impl ReviewRepository for WriteRefusingReviews {
"refused".into(),
))
}
async fn delete_review(
async fn delete_review_and_orphaned_movie(
&self,
_: &ReviewId,
_: &domain::value_objects::MovieId,
_: &[domain::events::DomainEvent],
_: &[domain::events::DomainEvent],
) -> Result<(), domain::errors::DomainError> {
Err(domain::errors::DomainError::InfrastructureError(