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 ... // ConvertStringToObjectID ...
func ConvertStringToObjectID(id string) primitive.ObjectID { func ConvertStringToObjectID(id string) primitive.ObjectID {
ID, _ := primitive.ObjectIDFromHex(id) objID, _ := primitive.ObjectIDFromHex(id)
return ID return objID
} }
// SortObjectId ... // SortObjectId ...