Skip to content

Commit

Permalink
fix: add ordering_key on release struct
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyNova016 committed Jan 9, 2025
1 parent 7ff1707 commit 5b2bdff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/entity/relations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ pub struct Relation {
pub direction: String,
#[serde(rename = "type")]
pub relation_type: String,

/// The order of the relationship
pub ordering_key: Option<u64>,
}

#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
Expand Down
3 changes: 2 additions & 1 deletion tests/async_tests/api/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ async fn should_get_artist_relations_from_release() {
type_id: "87e922ba-872e-418a-9f41-0a63aa3c30cc".to_string(),
begin: None,
direction: "backward".to_string(),
relation_type: "engineer".to_string()
relation_type: "engineer".to_string(),
ordering_key: None
}]
);
}
Expand Down
1 change: 1 addition & 0 deletions tests/blocking_tests/api/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ fn should_get_artist_relations_from_release() {
begin: None,
direction: "backward".to_string(),
relation_type: "engineer".to_string()
ordering_key: None
}]
);
}
Expand Down

0 comments on commit 5b2bdff

Please sign in to comment.