aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-08-30 19:36:33 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-08-30 19:36:33 -0700
commitd046bee7a76576cf14a2815b787247fca8c44433 (patch)
tree4945364b2c707001727213a0942d1582d058ff3f /rust
parent43cb2cdcd3dae5e054f093120940b9aa1e09718a (diff)
downloadfatcat-d046bee7a76576cf14a2815b787247fca8c44433.tar.gz
fatcat-d046bee7a76576cf14a2815b787247fca8c44433.zip
editgroup IDs are fcid, not uuid
Diffstat (limited to 'rust')
-rw-r--r--rust/src/api_server.rs2
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),))