This commit is contained in:
Tulir Asokan 2023-09-05 02:05:01 +03:00
parent 86b4d464c3
commit 25d53248e2

View file

@ -111,7 +111,7 @@ func (br *GMBridge) GetPortalByOtherUser(key database.Key) *Portal {
defer br.portalsLock.Unlock()
portal, ok := br.portalsByOtherUser[key]
if !ok {
dbPortal, err := br.DB.Portal.GetByKey(context.TODO(), key)
dbPortal, err := br.DB.Portal.GetByOtherUser(context.TODO(), key)
if err != nil {
br.ZLog.Err(err).Object("portal_key", key).Msg("Failed to get portal from database")
return nil