From 506a78c56695d3aa44197791cf45dbdc5850bc2e Mon Sep 17 00:00:00 2001 From: Hoang Date: Mon, 8 Nov 2021 10:43:09 +0700 Subject: [PATCH] fix mongoDBConfig --- devicemngt.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devicemngt.go b/devicemngt.go index cc2b7e7..568e032 100644 --- a/devicemngt.go +++ b/devicemngt.go @@ -10,7 +10,7 @@ import ( // MongoDBConfig ... type MongoDBConfig struct { - Host, User, Password, DBName, mechanism, source string + Host, User, Password, DBName, Mechanism, Source string } // Config ... @@ -41,8 +41,8 @@ func Init(config Config) (*Service, error) { config.MongoDB.User, config.MongoDB.Password, config.MongoDB.DBName, - config.MongoDB.mechanism, - config.MongoDB.source, + config.MongoDB.Mechanism, + config.MongoDB.Source, ) if err != nil { fmt.Println("Cannot init module DEVICE MANAGEMENT", err)