Skip to content

Commit

Permalink
feat: update goflow and use new wpp system user token setter
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobernardoaf committed Oct 17, 2024
1 parent e6282c7 commit 9001134
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ go 1.17

replace github.com/nyaruka/gocommon => github.com/Ilhasoft/gocommon v1.16.2-weni

replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v1.4.0
replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v1.4.1-a1-dev
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLD
github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0=
github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao=
github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4=
github.com/weni-ai/goflow v1.4.0 h1:tH/H7/WeS21nvH1jXntQX6y+quCHVi6epByoV9hZXH0=
github.com/weni-ai/goflow v1.4.0/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c=
github.com/weni-ai/goflow v1.4.1-a1-dev h1:fIqO2yhLNWgR6SpgVNqE4pY9w1rhKddj0ZG/0WjYAs8=
github.com/weni-ai/goflow v1.4.1-a1-dev/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
4 changes: 2 additions & 2 deletions mailroom.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/nyaruka/gocommon/storage"
"github.com/nyaruka/goflow/flows"
"github.com/nyaruka/goflow/flows/routers"
"github.com/nyaruka/goflow/services/webhooks"
"github.com/nyaruka/mailroom/core/queue"
"github.com/nyaruka/mailroom/runtime"
"github.com/nyaruka/mailroom/web"
Expand Down Expand Up @@ -77,7 +77,7 @@ func NewMailroom(config *runtime.Config) *Mailroom {
routers.SetZeroshotAPIURL(mr.rt.Config.ZeroshotAPIUrl)

// set whatsapp system user token to be used in goflow
webhooks.SetWhatsAppSystemUserToken(mr.rt.Config.WhatsappSystemUserToken)
flows.SetWhatsAppSystemUserToken(mr.rt.Config.WhatsappSystemUserToken)

return mr
}
Expand Down

0 comments on commit 9001134

Please sign in to comment.