This commit is contained in:
anbuiselly 2022-12-14 15:55:03 +07:00
parent 6dc437b245
commit 008506a181
1 changed files with 2 additions and 2 deletions

View File

@ -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 ...