diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-20 14:33:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-20 14:33:09 -0700 |
commit | b4eb110bd880f78c5da578fe897ae97d4c734984 (patch) | |
tree | 2eef3aeef360e548680c431abb2b5547f4242632 /rust/src/database_models.rs | |
parent | e4c1514294443b9e6f6ed716dcad5ebec64c3af8 (diff) | |
download | fatcat-b4eb110bd880f78c5da578fe897ae97d4c734984.tar.gz fatcat-b4eb110bd880f78c5da578fe897ae97d4c734984.zip |
rust: base32 encoded idents
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r-- | rust/src/database_models.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index 8489b336..15dffad0 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -1,3 +1,4 @@ +use api_helpers::uuid2fcid; use chrono; use database_schema::*; use errors::*; @@ -54,8 +55,8 @@ macro_rules! entity_structs { Ok(EntityEdit { editgroup_id: self.editgroup_id, revision: self.rev_id, - redirect_ident: self.redirect_id.map(|v| v.to_string()), - ident: self.ident_id.to_string(), + redirect_ident: self.redirect_id.map(|v| uuid2fcid(&v)), + ident: uuid2fcid(&self.ident_id), edit_id: self.id, extra: self.extra_json, }) |