diff options
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r-- | rust/src/api_server.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs index 5069d15d..7adf1a1d 100644 --- a/rust/src/api_server.rs +++ b/rust/src/api_server.rs @@ -351,7 +351,7 @@ impl Server { id: Some(row.id), editor_id: row.editor_id, description: row.description, - extra: None, + extra: row.extra_json, }; Ok(Some(eg)) } @@ -693,6 +693,7 @@ impl Api for Server { .values(( editgroup::editor_id.eq(body.editor_id as i64), editgroup::description.eq(body.description), + editgroup::extra_json.eq(body.extra), )) .get_result(&conn) .expect("error creating edit group"); @@ -701,7 +702,7 @@ impl Api for Server { id: Some(row.id), editor_id: row.editor_id, description: row.description, - extra: None, + extra: row.extra_json, }; Box::new(futures::done(Ok( EditgroupPostResponse::SuccessfullyCreated(new_eg), |