let sort = SortType::from_str(&self.sort)?;
- let communities: Vec<CommunityView> = CommunityView::list(&conn, user_id, sort, self.page, self.limit)?;
+ let communities: Vec<CommunityView> = CommunityView::list(&conn, user_id, sort, self.page, Some(50))?;
// Return the jwt
Ok(
if (i.props.community) {
WebSocketService.Instance.editCommunity(i.state.communityForm);
} else {
- WebSocketService.Instance.createCommunity(i.state.communityForm);
+
+ setTimeout(function(){
+ WebSocketService.Instance.createCommunity(i.state.communityForm);
+ }, 10000);
}
i.setState(i.state);
}
i.state.registerLoading = true;
i.setState(i.state);
event.preventDefault();
- WebSocketService.Instance.register(i.state.registerForm);
+ setTimeout(function(){
+ WebSocketService.Instance.register(i.state.registerForm);
+ }, 10000);
}
handleRegisterUsernameChange(i: Login, event: any) {