Skip to content

Commit

Permalink
Update to latest gofloe v0.98.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jul 28, 2020
1 parent 11d952f commit ff7eb03
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require (
github.com/mattn/go-sqlite3 v1.10.0 // indirect
github.com/nyaruka/ezconf v0.2.1
github.com/nyaruka/gocommon v1.2.0
github.com/nyaruka/goflow v0.97.0
github.com/nyaruka/goflow v0.98.0
github.com/nyaruka/librato v1.0.0
github.com/nyaruka/logrus_sentry v0.8.2-0.20190129182604-c2962b80ba7d
github.com/nyaruka/null v1.2.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ github.com/nyaruka/ezconf v0.2.1 h1:TDXWoqjqYya1uhou1mAJZg7rgFYL98EB0Tb3+BWtUh0=
github.com/nyaruka/ezconf v0.2.1/go.mod h1:ey182kYkw2MIi4XiWe1FR/mzI33WCmTWuceDYYxgnQw=
github.com/nyaruka/gocommon v1.2.0 h1:gCmVCXYZFwKDMqQj8R1jNlK+7a06khKFq3zX8fBBbzw=
github.com/nyaruka/gocommon v1.2.0/go.mod h1:9Y21Fd6iZXDLHWTRiZAc6b4LQSCi6HEEQK4SB45Yav4=
github.com/nyaruka/goflow v0.97.0 h1:S2WwcwZY7mEjXmSEOwb2eHWI88KrQd7jB6ueFQD8ohI=
github.com/nyaruka/goflow v0.97.0/go.mod h1:ttUI9hd9ufGU/3EqIst6Hdc68imMG1utlqcELbYrtOQ=
github.com/nyaruka/goflow v0.98.0 h1:qM3NNuG0XeAIIdrzJr+3pg92vD7TVEqO5UFu1K345oM=
github.com/nyaruka/goflow v0.98.0/go.mod h1:ttUI9hd9ufGU/3EqIst6Hdc68imMG1utlqcELbYrtOQ=
github.com/nyaruka/librato v1.0.0 h1:Vznj9WCeC1yZXbBYyYp40KnbmXLbEkjKmHesV/v2SR0=
github.com/nyaruka/librato v1.0.0/go.mod h1:pkRNLFhFurOz0QqBz6/DuTFhHHxAubWxs4Jx+J7yUgg=
github.com/nyaruka/logrus_sentry v0.8.2-0.20190129182604-c2962b80ba7d h1:hyp9u36KIwbTCo2JAJ+TuJcJBc+UZzEig7RI/S5Dvkc=
Expand Down
4 changes: 2 additions & 2 deletions models/contacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func ContactIDsForQueryPage(ctx context.Context, client *elastic.Client, org *Or
}

if query != "" {
parsed, err = contactql.ParseQuery(query, env.RedactionPolicy(), env.DefaultCountry(), org.SessionAssets())
parsed, err = contactql.ParseQuery(env, query, org.SessionAssets())
if err != nil {
return nil, nil, 0, errors.Wrapf(err, "error parsing query: %s", query)
}
Expand Down Expand Up @@ -282,7 +282,7 @@ func ContactIDsForQuery(ctx context.Context, client *elastic.Client, org *OrgAss
}

// turn into elastic query
parsed, err := contactql.ParseQuery(query, env.RedactionPolicy(), env.DefaultCountry(), org.SessionAssets())
parsed, err := contactql.ParseQuery(env, query, org.SessionAssets())
if err != nil {
return nil, errors.Wrapf(err, "error parsing query: %s", query)
}
Expand Down
2 changes: 1 addition & 1 deletion web/contact/contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func handleParseQuery(ctx context.Context, s *web.Server, r *http.Request) (inte
}

env := oa.Env()
parsed, err := contactql.ParseQuery(request.Query, env.RedactionPolicy(), env.DefaultCountry(), oa.SessionAssets())
parsed, err := contactql.ParseQuery(env, request.Query, oa.SessionAssets())

if err != nil {
isQueryError, qerr := contactql.IsQueryError(err)
Expand Down

0 comments on commit ff7eb03

Please sign in to comment.