Skip to content

Commit

Permalink
Correct spelling of "DeleteDcoument" function (#249)
Browse files Browse the repository at this point in the history
Renamed the "DeleteDcoument" function to have the correct spelling "DeleteDocument"
  • Loading branch information
TheRegan authored and Vlad Barosan committed May 23, 2019
1 parent c6c3b05 commit 9daf368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cosmosdb/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func UpdateDocument(session *mgo.Session, database, collectionName string, id bs
return collection.Update(bson.M{"_id": id}, change)
}

// DeleteDcoument deletes the mongoDB document with the specified ID
func DeleteDcoument(session *mgo.Session, database, collectionName string, id bson.ObjectId) error {
// DeleteDocument deletes the mongoDB document with the specified ID
func DeleteDocument(session *mgo.Session, database, collectionName string, id bson.ObjectId) error {
collection := GetCollection(session, database, collectionName)
return collection.Remove(bson.M{"_id": id})
}

0 comments on commit 9daf368

Please sign in to comment.