Skip to content

Commit

Permalink
Ignore closed and solved tickets
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Fitzgerald committed Jul 25, 2018
1 parent 766af84 commit f14743c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zendesk/tickets.go
Expand Up @@ -73,7 +73,7 @@ func newTickets() ([]Ticket, error) {
log.Fatal(err)
}
for _, Ticket := range tickets.Tickets {
if Ticket.Status == "new" {
if Ticket.Status == "new" && Ticket.Status != "closed" && Ticket.Status != "solved" {
newTickets = append(newTickets, Ticket)
}
}
Expand Down

0 comments on commit f14743c

Please sign in to comment.