Fix typo
This commit is contained in:
parent
86b4d464c3
commit
25d53248e2
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ func (br *GMBridge) GetPortalByOtherUser(key database.Key) *Portal {
|
||||||
defer br.portalsLock.Unlock()
|
defer br.portalsLock.Unlock()
|
||||||
portal, ok := br.portalsByOtherUser[key]
|
portal, ok := br.portalsByOtherUser[key]
|
||||||
if !ok {
|
if !ok {
|
||||||
dbPortal, err := br.DB.Portal.GetByKey(context.TODO(), key)
|
dbPortal, err := br.DB.Portal.GetByOtherUser(context.TODO(), key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
br.ZLog.Err(err).Object("portal_key", key).Msg("Failed to get portal from database")
|
br.ZLog.Err(err).Object("portal_key", key).Msg("Failed to get portal from database")
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue