summaryrefslogtreecommitdiffstats
path: root/rust/src/api_server.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-25 14:03:37 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-25 14:03:47 -0700
commit8e92be6e1e9396f4920c0f947337e1be643e1994 (patch)
tree2891a0ed7b6c780d1e86a81462b4c10dd13fa79a /rust/src/api_server.rs
parent495a1367510be66a9409d7b56a4b632a64aeefef (diff)
downloadfatcat-8e92be6e1e9396f4920c0f947337e1be643e1994.tar.gz
fatcat-8e92be6e1e9396f4920c0f947337e1be643e1994.zip
edit lists, refs, contribs
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r--rust/src/api_server.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index 8364ec8c..a2e133fe 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -305,6 +305,8 @@ impl Server {
issue: rev.issue,
container_id: rev.container_ident_id.map(|u| u.to_string()),
work_id: rev.work_ident_id.to_string(),
+ refs: None,
+ contribs: None,
state: Some(ident.state().unwrap().shortname()),
ident: Some(ident.id.to_string()),
revision: ident.rev_id,
@@ -341,6 +343,8 @@ impl Server {
issue: rev.issue,
container_id: rev.container_ident_id.map(|u| u.to_string()),
work_id: rev.work_ident_id.to_string(),
+ refs: None,
+ contribs: None,
state: Some(ident.state().unwrap().shortname()),
ident: Some(ident.id.to_string()),
revision: ident.rev_id,
@@ -360,6 +364,7 @@ impl Server {
id: Some(row.id),
editor_id: row.editor_id,
description: row.description,
+ edits: None,
extra: row.extra_json,
};
Ok(Some(eg))
@@ -716,6 +721,7 @@ impl Api for Server {
id: Some(row.id),
editor_id: row.editor_id,
description: row.description,
+ edits: None,
extra: row.extra_json,
};
Box::new(futures::done(Ok(