Skip to content
Snippets Groups Projects
Commit 6eaf99ec authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix bindings mistake

parent 5a974357
No related branches found
No related tags found
2 merge requests!231Revert "Update store to print changes to the partners list",!167Xx 3789/delete individual requests
......@@ -453,9 +453,14 @@ func (c *Client) GetNodeRegistrationStatus() (*NodeRegistrationsStatus, error) {
// DeleteRequest will delete a request, agnostic of request type
// for the given partner ID. If no request exists for this
// partner ID an error will be returned.
func (c *Client) DeleteRequest(partnerId *id.ID) error {
jww.DEBUG.Printf("Deleting request for partner ID: %s", partnerId)
return c.api.DeleteRequest(partnerId)
func (c *Client) DeleteRequest(requesterUserId []byte) error {
requesterId, err := id.Unmarshal(requesterUserId)
if err != nil {
return err
}
jww.DEBUG.Printf("Deleting request for partner ID: %s", requesterId)
return c.api.DeleteRequest(requesterId)
}
// DeleteAllRequests clears all requests from Client's auth storage.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment