add func convert #8

Merged
sinhluu merged 3 commits from add-convert into master 2022-12-14 10:07:24 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 008506a181 - Show all commits

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