Merge pull request #244 from storytold/feature/missing-response-values

Fixed added weights type by request.
This commit is contained in:
ArEnSc authored and GitHub committed 2023-12-23 23:26:49 -05:00
commit 0125eba7cc
1 file changed
+2
@@ -22,6 +22,7 @@ use crate::server_state::ServerState;
pub struct Weight {
weight_token: ModelWeightToken,
title: String,
weights_type: String,
weights_category: String,
creator: UserDetailsLight,
creator_set_visibility: Visibility,
@@ -170,6 +171,7 @@ pub async fn list_weights_by_user_handler(
Weight {
weight_token: weight.token,
title: weight.title,
weights_type: weight.weights_type.to_string(),
weights_category: weight.weights_category.to_string(),
creator: UserDetailsLight::from_db_fields(
&weight.creator_user_token,