Skip to content

Commit cf36447

Browse files
authored
Merge pull request #10 from firasmdar/firasmdar-patch-1
fixing bug in getCollectionById
2 parents 2a0cbce + 5f76860 commit cf36447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aranGoSession.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func (session *AranGoSession) AqlQuery(typ interface{}, dbname string, query str
237237
// GetCollectionByID search collection by id
238238
func (session *AranGoSession) GetCollectionByID(dbname string, id string) (map[string]interface{}, error) {
239239
var collection map[string]interface{}
240-
err := session.arangoCon.Query(&collection, http.MethodGet, "/_db/"+dbname+urlDocument+"/"+id, nil)
240+
err := session.arangoCon.Query(&collection, http.MethodGet, "/_db/"+dbname+urlCollection+"/"+id, nil)
241241

242242
return collection, err
243243
}

0 commit comments

Comments
 (0)