Fix comment of notification API
parent
5d72d54344
commit
f752ac9eba
|
@ -25,7 +25,7 @@ func (c *Client) GetNotifications() ([]*Notification, error) {
|
||||||
return notifications, nil
|
return notifications, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetNotifications return notifications.
|
// GetNotifications return notification.
|
||||||
func (c *Client) GetNotification(id int64) (*Notification, error) {
|
func (c *Client) GetNotification(id int64) (*Notification, error) {
|
||||||
var notification Notification
|
var notification Notification
|
||||||
err := c.doAPI(http.MethodGet, fmt.Sprintf("/api/v1/notifications/%d", id), nil, ¬ification)
|
err := c.doAPI(http.MethodGet, fmt.Sprintf("/api/v1/notifications/%d", id), nil, ¬ification)
|
||||||
|
|
Loading…
Reference in New Issue