aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_server.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:43:38 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:43:38 -0700
commit79807ca16c98c5f75e08624a514ba2afe585373a (patch)
treeae92957724d3d0cd56a4d0d31188603111cf635c /rust/src/api_server.rs
parentf8d9d4f92bcb491d54360e335745056be0de19e2 (diff)
downloadfatcat-79807ca16c98c5f75e08624a514ba2afe585373a.tar.gz
fatcat-79807ca16c98c5f75e08624a514ba2afe585373a.zip
index for contribs
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r--rust/src/api_server.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index 19cd5fe4..6fbce00b 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -332,8 +332,7 @@ impl Server {
.expect("fetch release refs")
.iter()
.map(|c: &ReleaseContribRow| ReleaseContrib {
- // XXX: index: c.index,
- index: None,
+ index: c.index,
contrib_type: c.contrib_type.clone(),
creator_stub: c.stub.clone(),
creator_id: c.creator_ident_id.map(|v| v.to_string()),
@@ -396,8 +395,7 @@ impl Server {
.expect("fetch release refs")
.iter()
.map(|c: &ReleaseContribRow| ReleaseContrib {
- // XXX: index: c.index,
- index: None,
+ index: c.index,
contrib_type: c.contrib_type.clone(),
creator_stub: c.stub.clone(),
creator_id: c.creator_ident_id.map(|v| v.to_string()),
@@ -781,8 +779,7 @@ impl Api for Server {
target_release_ident_id: r.target_release_id
.clone()
.map(|v| uuid::Uuid::parse_str(&v).expect("valid UUID")),
- // XXX: index: r.index,
- index: None,
+ index: r.index,
stub: r.stub.clone(),
})
.collect();
@@ -808,7 +805,7 @@ impl Api for Server {
creator_ident_id: c.creator_id
.clone()
.map(|v| uuid::Uuid::parse_str(&v).expect("valid UUID")),
- // XXX: index: r.index,
+ index: c.index,
contrib_type: c.contrib_type.clone(),
stub: c.creator_stub.clone(),
})