fix: fix.
This commit is contained in:
parent
96a0296d23
commit
d7e751677f
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue