Skip to content

Commit

Permalink
Merge pull request #358 from nyaruka/imports2
Browse files Browse the repository at this point in the history
🚀 Imports 2.0
  • Loading branch information
rowanseymour authored Sep 30, 2020
2 parents 1ad2a3c + 81e279b commit 14ec817
Show file tree
Hide file tree
Showing 25 changed files with 1,600 additions and 252 deletions.
1 change: 1 addition & 0 deletions cmd/mailroom/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
_ "github.com/nyaruka/mailroom/services/tickets/zendesk"
_ "github.com/nyaruka/mailroom/tasks/broadcasts"
_ "github.com/nyaruka/mailroom/tasks/campaigns"
_ "github.com/nyaruka/mailroom/tasks/contacts"
_ "github.com/nyaruka/mailroom/tasks/expirations"
_ "github.com/nyaruka/mailroom/tasks/groups"
_ "github.com/nyaruka/mailroom/tasks/interrupts"
Expand Down
2 changes: 1 addition & 1 deletion hooks/session_triggered.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (h *InsertStartHook) Apply(ctx context.Context, tx *sqlx.Tx, rp *redis.Pool
}

// load our contacts by uuid
contactIDs, err := models.ContactIDsFromReferences(ctx, tx, oa, event.Contacts)
contactIDs, err := models.GetContactIDsFromReferences(ctx, tx, oa.OrgID(), event.Contacts)
if err != nil {
return errors.Wrapf(err, "error loading contacts by reference")
}
Expand Down
Binary file modified mailroom_test.dump
Binary file not shown.
Loading

0 comments on commit 14ec817

Please sign in to comment.