add func convert #8
|
@ -29,8 +29,8 @@ func ConvertStringsToObjectIDs(strValues []string) []primitive.ObjectID {
|
|||
|
||||
// ConvertStringToObjectID ...
|
||||
func ConvertStringToObjectID(id string) primitive.ObjectID {
|
||||
ID, _ := primitive.ObjectIDFromHex(id)
|
||||
return ID
|
||||
objID, _ := primitive.ObjectIDFromHex(id)
|
||||
return objID
|
||||
}
|
||||
|
||||
// SortObjectId ...
|
||||
|
|
Loading…
Reference in New Issue