Skip to content

Commit

Permalink
Fix function return
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Oct 21, 2024
1 parent 0503cae commit 3ec20d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/rapidpro/contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ func contactForURNTeams(ctx context.Context, b *backend, urn urns.URN, org OrgID
err := b.db.GetContext(ctx, contact, lookupContactFromTeamsURNSQL, urnIdentity[0], org)
if err != nil && err != sql.ErrNoRows {
logrus.WithError(err).WithField("urn", urn.Identity()).WithField("org_id", org).Error("error looking up contact")
return nil, err
return contact, err
}

if err == sql.ErrNoRows {
return nil, err
return contact, err
}

err = updateContactTeamsURN(b.db, contact.URNID_, urn.Identity().String())
Expand Down

0 comments on commit 3ec20d8

Please sign in to comment.