diff options
author | Dessalines <happydooby@gmail.com> | 2019-08-17 14:39:20 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-08-17 14:39:20 -0700 |
commit | ddd08278b95f8099cd053f131fb4d54114229c15 (patch) | |
tree | 08660a53b02f4688502a92f02cf126b9965568c8 | |
parent | b29e15df2675bd828ddb504be467fe18f0ea2edc (diff) |
Fix bug when changing main community name.
-rw-r--r-- | server/src/api/user.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/api/user.rs b/server/src/api/user.rs index 2a6c214a..672eca56 100644 --- a/server/src/api/user.rs +++ b/server/src/api/user.rs @@ -170,7 +170,7 @@ impl Perform<LoginResponse> for Oper<Register> { }; // Create the main community if it doesn't exist - let main_community: Community = match Community::read_from_name(&conn, "main".to_string()) { + let main_community: Community = match Community::read(&conn, 2) { Ok(c) => c, Err(_e) => { let community_form = CommunityForm { |