Skip to content

Commit

Permalink
chore: remove slack dependency on datautils (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
abelanger5 authored Jan 3, 2024
1 parent c7a4c90 commit dca1516
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pkg/integrations/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,21 @@ import (
"context"
"fmt"

"github.com/hatchet-dev/hatchet/internal/datautils"
"github.com/hatchet-dev/hatchet/pkg/integrations"
"github.com/slack-go/slack"
)

type SlackIntegration struct {
api *slack.Client
teamId string
decoderValidator datautils.DataDecoderValidator
api *slack.Client
teamId string
}

func NewSlackIntegration(authToken string, teamId string, debug bool) *SlackIntegration {
api := slack.New(authToken, slack.OptionDebug(debug))
decoderValidator := datautils.NewDataDecoderValidator()

return &SlackIntegration{
api: api,
teamId: teamId,
decoderValidator: decoderValidator,
api: api,
teamId: teamId,
}
}

Expand Down

0 comments on commit dca1516

Please sign in to comment.