This commit is contained in:
2021-11-22 21:50:47 +09:00
parent b3318e4419
commit 9f133ee752
10 changed files with 37 additions and 94 deletions

View File

@ -15,7 +15,6 @@ import (
"github.com/animenotifier/notify.moe/server/graphql"
"github.com/animenotifier/notify.moe/server/https"
"github.com/animenotifier/notify.moe/server/middleware"
"github.com/animenotifier/notify.moe/utils/htmlemail"
)
// New creates a new web server.
@ -86,9 +85,6 @@ func New() *aero.Application {
color.Red(err.Error())
})
// Emails
arn.HTMLEmailRenderer = &htmlemail.Renderer{}
// Check that this is the server
if !arn.Node.IsServer() && !IsTest() {
panic("Another program is currently running as the database server")