Skip to content

Commit

Permalink
Channel as part of group name
Browse files Browse the repository at this point in the history
  • Loading branch information
ghstahl committed Jan 3, 2024
1 parent 9cfa379 commit 7d48933
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions cmd/cli/cmd/tasks/publisher/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ to quickly create a Cobra application.`,
options = append(options, asynq.MaxRetry(maxRetry))
if len(group) > 0 {
gg := &models.Group{
OrgId: group,
Event: "some:event",
AppID: group,
Event: "some:event",
Channel: "$default",
}
groupS, err := json.Marshal(gg)
if err != nil {
Expand Down
5 changes: 3 additions & 2 deletions internal/models/groups.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package models

type Group struct {
OrgId string
Event string
AppID string
Event string
Channel string
}

0 comments on commit 7d48933

Please sign in to comment.