mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 17:08:13 +00:00
Merge pull request #244 from storytold/feature/missing-response-values
Fixed added weights type by request.
This commit is contained in:
1 file changed
+2
+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,
|
||||
|
||||
Reference in new issue
Block a user