Skip to content

Commit

Permalink
linting + update history.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Trosss committed Nov 12, 2024
1 parent 67cbaa5 commit a68b387
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.17.1

* Add default properties for Ticket#find

## 0.17.0

* Add various Ticket endpoints (#create!, #update!, #find)
Expand Down
3 changes: 1 addition & 2 deletions lib/hubspot/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ def create!(params = {}, ticket_id: nil)
end

def find(task_id, properties = DEFAULT_TASK_FIELDS)
response = Hubspot::Connection.get_json(TASK_PATH, { task_id: task_id,
properties: properties })
response = Hubspot::Connection.get_json(TASK_PATH, task_id: task_id, properties:)
new(response)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/hubspot/ticket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def update!(id, properties = {})
end

def find(ticket_id, properties = DEFAULT_TICKET_FIELDS)
response = Hubspot::Connection.get_json(TICKET_PATH, { ticket_id: ticket_id, properties: })
response = Hubspot::Connection.get_json(TICKET_PATH, ticket_id: ticket_id, properties:)
new(response)
end
end
Expand Down

0 comments on commit a68b387

Please sign in to comment.