Fix bug when changing main community name.

This commit is contained in:
Dessalines 2019-08-17 14:39:20 -07:00
parent d0a9cef72e
commit 6a59b536e5

View file

@ -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 {