diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-08-30 19:36:33 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-08-30 19:36:33 -0700 |
commit | d046bee7a76576cf14a2815b787247fca8c44433 (patch) | |
tree | 4945364b2c707001727213a0942d1582d058ff3f /rust | |
parent | 43cb2cdcd3dae5e054f093120940b9aa1e09718a (diff) | |
download | fatcat-d046bee7a76576cf14a2815b787247fca8c44433.tar.gz fatcat-d046bee7a76576cf14a2815b787247fca8c44433.zip |
editgroup IDs are fcid, not uuid
Diffstat (limited to 'rust')
-rw-r--r-- | rust/src/api_server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs index e8e7d062..88fd7063 100644 --- a/rust/src/api_server.rs +++ b/rust/src/api_server.rs @@ -33,7 +33,7 @@ macro_rules! entity_batch_handler { let editor_id = Uuid::parse_str("00000000-0000-0000-AAAA-000000000001")?; // TODO: auth // editgroup override logic based on parameters let eg_id: Option<Uuid> = match (editgroup, autoaccept) { - (Some(eg_string), _) => Some(Uuid::parse_str(&eg_string)?), + (Some(eg_string), _) => Some(fcid2uuid(&eg_string)?), (None, true) => { let eg_row: EditgroupRow = diesel::insert_into(editgroup::table) .values((editgroup::editor_id.eq(editor_id),)) |