Hallucinate a whole lot of shit...
Too much shit...
This commit is contained in:
9
main.go
9
main.go
@@ -7,6 +7,7 @@ import (
|
||||
|
||||
"go-eve-pi/esi"
|
||||
"go-eve-pi/options"
|
||||
"go-eve-pi/repositories"
|
||||
"go-eve-pi/routes"
|
||||
wh "go-eve-pi/webhook"
|
||||
|
||||
@@ -36,11 +37,19 @@ func main() {
|
||||
logger.Init(logger.ParseLevel(options.GlobalOptions.LogLevel))
|
||||
logger.Info("Starting Eve PI")
|
||||
|
||||
// Initialize database with repositories
|
||||
database, err := repositories.NewDatabase()
|
||||
if err != nil {
|
||||
logger.Error("Failed to initialize database: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
// Create SSO instance
|
||||
sso, err := esi.NewSSO(
|
||||
options.GlobalOptions.ClientID,
|
||||
options.GlobalOptions.RedirectURI,
|
||||
options.GlobalOptions.Scopes,
|
||||
database.Character,
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error("Failed to create SSO instance %v", err)
|
||||
|
||||
Reference in New Issue
Block a user