chore: fix typo
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dawid Wysokiński 2022-07-19 07:27:23 +02:00
parent 83fc8c67dc
commit ef0e97a245
Signed by: Kichiyaki
GPG Key ID: 1ECC5DE481BE5184
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ type Sonarr struct {
publisher Publisher
}
func NewSonaar(publisher Publisher) *Sonarr {
func NewSonarr(publisher Publisher) *Sonarr {
return &Sonarr{
publisher: publisher,
}

View File

@ -36,7 +36,7 @@ func TestSonarr_Process(t *testing.T) {
payload := generateSonarrWebhookPayload(evType)
err := service.NewSonaar(publisher).Process(context.Background(), payload)
err := service.NewSonarr(publisher).Process(context.Background(), payload)
assert.NoError(t, err)
require.Equal(t, len(payload.Episodes), publisher.PublishCallCount())
for i, ep := range payload.Episodes {

View File

@ -106,7 +106,7 @@ func newSonarrService() (*service.Sonarr, error) {
return nil, fmt.Errorf(`os.Getenv("SONARR_NTFY_REQ_TIMEOUT"): %w`, err)
}
return service.NewSonaar(
return service.NewSonarr(
service.NewNtfy(
&http.Client{Timeout: parsedTimeout},
url,