fix: restore FetchCommunity&TryDatabase fallback to store nodes
Add missing check caused by recent `communities.GetByID` refactoring.
This commit is contained in:
parent
3a00c3fb9d
commit
3ddec465c5
|
@ -2565,7 +2565,7 @@ func (m *Messenger) FetchCommunity(request *FetchCommunityRequest) (*communities
|
||||||
|
|
||||||
if request.TryDatabase {
|
if request.TryDatabase {
|
||||||
community, err := m.FindCommunityInfoFromDB(communityID)
|
community, err := m.FindCommunityInfoFromDB(communityID)
|
||||||
if err != nil {
|
if err != nil && err != communities.ErrOrgNotFound {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if community != nil {
|
if community != nil {
|
||||||
|
|
Loading…
Reference in New Issue