check log

This commit is contained in:
Nam Huynh 2021-10-07 23:37:41 +07:00
parent c2a2960b43
commit a095bb9f08
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import (
// CreateIndex ...
func CreateIndex(colName string, ind mongo.IndexModel) {
fmt.Println("db name:", db.Name())
// Get collection
col := db.Collection(colName)
if col == nil {