From d7e751677f898edea5fceb9326d4439cd420a912 Mon Sep 17 00:00:00 2001 From: surdeus Date: Fri, 31 May 2024 16:32:18 +0500 Subject: [PATCH] fix: fix. --- contacts.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contacts.go b/contacts.go index e0c2b7c..21b8ac6 100644 --- a/contacts.go +++ b/contacts.go @@ -7,13 +7,13 @@ import "surdeus.su/core/amo/api" import "fmt" func (client *Client) GetContact( - contactId int, + contactID int, opts ...urlenc.Builder, ) (*contacts.Contact, error) { deal := new(contacts.Contact) res := fmt.Sprintf( "/api/v4/contacts/%d?%s", - contactId, + contactID, urlenc.Join(opts...).Encode(), ) @@ -58,7 +58,7 @@ func (client *Client) GetContacts( func (client *Client) UpdateContact(contact *contacts.Contact) error { return client.updateEntity( "/api/v4/contacts", - contact.Id, + contact.ID, contact, ) }