From f3243f752f4a1eaae8726674b1978d96ad8da2e4 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 20 Jul 2018 21:01:44 -0700 Subject: oops, forgot revisions should be UUID --- rust/src/api_server.rs | 10 +++++----- rust/src/database_models.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'rust/src') diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs index fa64bf7b..b260a98a 100644 --- a/rust/src/api_server.rs +++ b/rust/src/api_server.rs @@ -99,7 +99,7 @@ fn container_row2entity( coden: rev.coden, state: state, ident: ident_id, - revision: Some(uuid2fcid(&rev.id)), + revision: Some(rev.id.to_string()), redirect: redirect_id, extra: rev.extra_json, editgroup_id: None, @@ -122,7 +122,7 @@ fn creator_row2entity(ident: Option, rev: CreatorRevRow) -> Res orcid: rev.orcid, state: state, ident: ident_id, - revision: Some(uuid2fcid(&rev.id)), + revision: Some(rev.id.to_string()), redirect: redirect_id, editgroup_id: None, extra: rev.extra_json, @@ -160,7 +160,7 @@ fn file_row2entity( releases: Some(releases), state: state, ident: ident_id, - revision: Some(uuid2fcid(&rev.id)), + revision: Some(rev.id.to_string()), redirect: redirect_id, editgroup_id: None, extra: rev.extra_json, @@ -232,7 +232,7 @@ fn release_row2entity( contribs: Some(contribs), state: state, ident: ident_id, - revision: Some(uuid2fcid(&rev.id)), + revision: Some(rev.id.to_string()), redirect: redirect_id, editgroup_id: None, extra: rev.extra_json, @@ -252,7 +252,7 @@ fn work_row2entity(ident: Option, rev: WorkRevRow) -> Result Result { Ok(EntityEdit { editgroup_id: uuid2fcid(&self.editgroup_id), - revision: self.rev_id.map(|v| uuid2fcid(&v)), + revision: self.rev_id.map(|v| v.to_string()), redirect_ident: self.redirect_id.map(|v| uuid2fcid(&v)), ident: uuid2fcid(&self.ident_id), edit_id: self.id, -- cgit v1.2.3