mongoClient 변경
This commit is contained in:
@ -237,7 +237,7 @@ func (sh *serviceDescription) prepare(mg *Maingate) error {
|
||||
div.Maintenance.link = div.Maintenance.Notice
|
||||
} else {
|
||||
var fd FileDocumentDesc
|
||||
if err := sh.mongoClient.FindOneAs(CollectionFile, bson.M{
|
||||
if err := mg.mongoClient.FindOneAs(CollectionFile, bson.M{
|
||||
"key": div.Maintenance.Notice,
|
||||
}, &fd, options.FindOne().SetProjection(bson.M{"link": 1})); err != nil {
|
||||
logger.Println(err)
|
||||
|
||||
Reference in New Issue
Block a user