Moved domain logic out of the database layer, to the user app route.
This commit is contained in:
@@ -21,12 +21,12 @@ pub enum RepositoryError {
|
||||
#[error(transparent)]
|
||||
Decode(#[from] DecodeError),
|
||||
|
||||
#[error("{relation} is owned by another user")]
|
||||
OwnershipConflict { relation: ReferenceRelation },
|
||||
|
||||
#[error("{relation} cannot be found")]
|
||||
NotFound { relation: ReferenceRelation },
|
||||
|
||||
#[error("{relation} is owned by another user")]
|
||||
OwnershipConflict { relation: ReferenceRelation },
|
||||
|
||||
#[error("reference violation ({kind}: {relation})")]
|
||||
ReferenceViolation {
|
||||
relation: ReferenceRelation,
|
||||
|
||||
Reference in New Issue
Block a user