diff --git a/services/tickets/zendesk/service.go b/services/tickets/zendesk/service.go index 57a42123e..8826f3b0c 100644 --- a/services/tickets/zendesk/service.go +++ b/services/tickets/zendesk/service.go @@ -118,7 +118,7 @@ func (s *service) Open(session flows.Session, topic *flows.Topic, body string, a _, trace, _ := s.restClient.UpdateManyTickets(ids, statusOpen) if trace != nil { logHTTP(flows.NewHTTPLog(trace, flows.HTTPStatusFromCode, s.redactor)) - return ticket, nil + return nil, nil } } diff --git a/services/tickets/zendesk/service_test.go b/services/tickets/zendesk/service_test.go index 4758b225d..041678deb 100644 --- a/services/tickets/zendesk/service_test.go +++ b/services/tickets/zendesk/service_test.go @@ -145,9 +145,8 @@ func TestOpenAndForward(t *testing.T) { test.AssertSnapshot(t, "forward_message", logger.Logs[0].Request) logger = &flows.HTTPLogger{} - ticket1, err := svc.Open(session, defaultTopic, fieldTicket1, nil, logger.Log) + _, err = svc.Open(session, defaultTopic, fieldTicket1, nil, logger.Log) assert.NoError(t, err) - assert.Equal(t, fieldTicket1, ticket1.Body()) assert.Equal(t, 1, len(logger.Logs)) test.AssertSnapshot(t, "open", logger.Logs[0].Request) }