Skip to content

Commit

Permalink
Update urn path
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Oct 21, 2024
1 parent 4e62743 commit 2ce49f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/rapidpro/urn.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ const updateTeamsURN = `
UPDATE
contacts_contacturn
SET
identity = $1
identity = $1,
path = $1
WHERE
id = $2;
Expand Down Expand Up @@ -335,7 +336,6 @@ func fullyUpdateContactURN(db *sqlx.Tx, urn *DBContactURN) error {
}

func updateContactTeamsURN(ctx context.Context, db *sqlx.DB, urnID ContactURNID, newURN string) error {
fmt.Println("NEWURN: ", newURN)
_, err := db.ExecContext(ctx, updateTeamsURN, newURN, urnID)
if err != nil {
logrus.WithError(err).WithField("urn_id", urnID).Error("error updating contact urn")
Expand Down

0 comments on commit 2ce49f8

Please sign in to comment.