From a68b38781aaf106cb3b1f8f1331a7ed4877fbff6 Mon Sep 17 00:00:00 2001 From: Trosss Date: Tue, 12 Nov 2024 17:21:36 +0100 Subject: [PATCH] linting + update history.md --- History.md | 4 ++++ lib/hubspot/task.rb | 3 +-- lib/hubspot/ticket.rb | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/History.md b/History.md index d94c267c..2014dde6 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,7 @@ +## 0.17.1 + +* Add default properties for Ticket#find + ## 0.17.0 * Add various Ticket endpoints (#create!, #update!, #find) diff --git a/lib/hubspot/task.rb b/lib/hubspot/task.rb index fe596776..d1dc5558 100644 --- a/lib/hubspot/task.rb +++ b/lib/hubspot/task.rb @@ -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 diff --git a/lib/hubspot/ticket.rb b/lib/hubspot/ticket.rb index 7cca523a..b7b27f25 100644 --- a/lib/hubspot/ticket.rb +++ b/lib/hubspot/ticket.rb @@ -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