Skip to content

Commit

Permalink
fix(server): re-generate proto
Browse files Browse the repository at this point in the history
fix(server): re-generate proto
  • Loading branch information
tsirysndr committed Jan 10, 2023
1 parent 787468e commit c9bc280
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/proto/metadata/v1alpha1/artist.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "metadata/v1alpha1/album.proto";
message ArtistSong {
string id = 1;
string title = 2;
string artist = 3;
repeated Artist artists = 4;
float duration = 5;
int32 disc_number = 6;
Expand Down
2 changes: 2 additions & 0 deletions server/src/api/metadata.v1alpha1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ pub struct ArtistSong {
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub title: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub artist: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "4")]
pub artists: ::prost::alloc::vec::Vec<Artist>,
#[prost(float, tag = "5")]
Expand Down
2 changes: 2 additions & 0 deletions server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ pub mod api {
track_number: i32::try_from(model.track.unwrap_or_default()).unwrap(),
artists: model.artists.into_iter().map(Into::into).collect(),
album: Some(model.album.into()),
artist: model.artist,
..Default::default()
}
}
Expand All @@ -214,6 +215,7 @@ pub mod api {
Some(album) => Some(album.into()),
None => None,
},
artist: self.artist,
..Default::default()
}
}
Expand Down

0 comments on commit c9bc280

Please sign in to comment.