From c5ec99d3e141cc4b30970ab63286c7290d803c6a Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 29 Jun 2023 21:31:51 +0900 Subject: [PATCH 1/2] =?UTF-8?q?mongoClient=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/service.go b/core/service.go index 61f9c56..e20a769 100644 --- a/core/service.go +++ b/core/service.go @@ -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) From ed85918e7f06538bb8630579799a51c353b2f6f4 Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 29 Jun 2023 21:32:05 +0900 Subject: [PATCH 2/2] =?UTF-8?q?maingate=20console=EC=9D=80=20=EC=9D=B4?= =?UTF-8?q?=EC=A0=9C=20=EB=B9=8C=EB=93=9C=20=EC=95=88=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- make_maingate_package.ps1 | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/make_maingate_package.ps1 b/make_maingate_package.ps1 index 6351629..c539772 100644 --- a/make_maingate_package.ps1 +++ b/make_maingate_package.ps1 @@ -4,24 +4,6 @@ $CurBranch = git branch --show-current Remove-Item maingate.zip -Force -Recurse -ErrorAction SilentlyContinue -cd .. -cd maingate-console - - -git switch $CurBranch -git pull -npm install -npm run build - -Remove-Item console -Force -Recurse -ErrorAction SilentlyContinue -Copy-Item build console -Recurse - -Compress-Archive -Path console -DestinationPath ..\maingate\maingate.zip -Force -Remove-Item console -Force -Recurse - -cd .. -cd maingate - $Env:GOOS="linux" $Env:GOARCH="amd64" go build -ldflags="-s -w" .