Merge branch 'master' into kd-live

This commit is contained in:
2023-06-29 21:32:19 +09:00
2 changed files with 1 additions and 19 deletions

View File

@ -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)