fixed doc env vars + mongo v2 migration
This commit is contained in:
@@ -3,9 +3,9 @@ package mutil
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
)
|
||||
|
||||
func GetAccountRef(r *http.Request) (primitive.ObjectID, error) {
|
||||
return primitive.ObjectIDFromHex(GetAccountID(r))
|
||||
func GetAccountRef(r *http.Request) (bson.ObjectID, error) {
|
||||
return bson.ObjectIDFromHex(GetAccountID(r))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user