Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Anarase <[email protected]>
  • Loading branch information
Vishal Anarase committed Mar 18, 2024
1 parent 92560ba commit 4f360aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (c *Client) DeleteDatabaseBackup(dbid, id string) (*SimpleResponse, error)
return c.DecodeSimpleResponse(resp)
}

// GetDatabase finds a database by the database UUID
// GetDatabaseBackup finds a database by the database UUID
func (c *Client) GetDatabaseBackup(dbid, id string) (*DatabaseBackup, error) {
resp, err := c.SendGetRequest(fmt.Sprintf("/v2/databases/%s/backups/%s", dbid, id))
if err != nil {
Expand All @@ -121,7 +121,7 @@ func (c *Client) GetDatabaseBackup(dbid, id string) (*DatabaseBackup, error) {
return bk, nil
}

// FindDatabase finds a database by either part of the ID or part of the name
// FindDatabaseBackup finds a database by either part of the ID or part of the name
func (c *Client) FindDatabaseBackup(dbid, search string) (*DatabaseBackup, error) {
backups, err := c.ListDatabaseBackup(dbid)
if err != nil {
Expand Down

0 comments on commit 4f360aa

Please sign in to comment.