Skip to content

Commit

Permalink
feat: remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pkamra committed Jun 6, 2023
1 parent bcd2c81 commit 64adfb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (*Mongo) NewClient(connURI string) interface{} {
return &Client{client: client}
}

func (c *Client) Insert(database string, collection string, prefix string, doc map[string]string) error {
func (c *Client) Insert(database string, collection string, doc map[string]string) error {
db := c.client.Database(database)
col := db.Collection(collection)
_, err := col.InsertOne(context.TODO(), doc)
Expand All @@ -51,7 +51,7 @@ func (c *Client) Insert(database string, collection string, prefix string, doc m
}


func (c *Client) InsertMany(database string, collection string, prefix string, docs []any) error {
func (c *Client) InsertMany(database string, collection string, docs []any) error {
log.Printf("Insert multiple documents")
db := c.client.Database(database)
col := db.Collection(collection)
Expand Down Expand Up @@ -133,7 +133,7 @@ func (c *Client) DeleteMany(database string, collection string, filter map[strin
return nil
}

func (c *Client) DropCollection(database string, collection string, prefix string) error {
func (c *Client) DropCollection(database string, collection string) error {
log.Printf("Delete collection if present")
db := c.client.Database(database)
col := db.Collection(collection)
Expand Down

0 comments on commit 64adfb4

Please sign in to comment.