From e4fdf4db9259ad6ad0b0d9abc8e2ba1d35b0553a Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Fri, 30 Aug 2019 20:48:52 -0700 Subject: [PATCH] Delete* methods were missing the opts parameter (#25) --- documentdb.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/documentdb.go b/documentdb.go index 287fad7..51b2f6b 100644 --- a/documentdb.go +++ b/documentdb.go @@ -287,28 +287,28 @@ func (c *DocumentDB) UpsertDocument(coll string, doc interface{}, opts ...CallOp // TODO: DRY, but the sdk want that[mm.. maybe just client.Delete(self_link)] // Delete database -func (c *DocumentDB) DeleteDatabase(link string) (*Response, error) { - return c.client.Delete(link) +func (c *DocumentDB) DeleteDatabase(link string, opts ...CallOption) (*Response, error) { + return c.client.Delete(link, opts...) } // Delete collection -func (c *DocumentDB) DeleteCollection(link string) (*Response, error) { - return c.client.Delete(link) +func (c *DocumentDB) DeleteCollection(link string, opts ...CallOption) (*Response, error) { + return c.client.Delete(link, opts...) } // Delete document -func (c *DocumentDB) DeleteDocument(link string) (*Response, error) { - return c.client.Delete(link) +func (c *DocumentDB) DeleteDocument(link string, opts ...CallOption) (*Response, error) { + return c.client.Delete(link, opts...) } // Delete stored procedure -func (c *DocumentDB) DeleteStoredProcedure(link string) (*Response, error) { - return c.client.Delete(link) +func (c *DocumentDB) DeleteStoredProcedure(link string, opts ...CallOption) (*Response, error) { + return c.client.Delete(link, opts...) } // Delete user defined function -func (c *DocumentDB) DeleteUserDefinedFunction(link string) (*Response, error) { - return c.client.Delete(link) +func (c *DocumentDB) DeleteUserDefinedFunction(link string, opts ...CallOption) (*Response, error) { + return c.client.Delete(link, opts...) } // Replace database