diff --git a/api/daily/common.go b/api/daily/common.go index a51abd6..521bf53 100644 --- a/api/daily/common.go +++ b/api/daily/common.go @@ -124,7 +124,6 @@ func S3SaveMigration() error { o.BaseEndpoint = aws.String(os.Getenv("AWS_ENDPOINT_URL_S3")) }) - // retrieve accounts from db _, err := svc.CreateBucket(context.Background(), &s3.CreateBucketInput{ Bucket: aws.String("pokerogue-system"), }) @@ -132,6 +131,7 @@ func S3SaveMigration() error { log.Printf("error while creating bucket (already exists?): %s", err) } + // retrieve accounts from db accounts, err := db.RetrieveOldAccounts() if err != nil { return fmt.Errorf("failed to retrieve old accounts: %s", err) diff --git a/docker-compose.Example.yml b/docker-compose.Example.yml index 289e074..1951729 100644 --- a/docker-compose.Example.yml +++ b/docker-compose.Example.yml @@ -12,7 +12,6 @@ services: callbackurl: http://localhost:8001 AWS_ACCESS_KEY_ID: AWS_SECRET_ACCESS_KEY: - AWS_REGION: AWS_ENDPOINT_URL_S3: depends_on: diff --git a/rogueserver.go b/rogueserver.go index c54c6de..b69631d 100644 --- a/rogueserver.go +++ b/rogueserver.go @@ -70,6 +70,7 @@ func main() { account.GoogleCallbackURL = callbackurl + "/auth/google/callback" account.DiscordSession, _ = discordgo.New("Bot " + discordbottoken) account.DiscordGuildID = discordguildid + // register gob types gob.Register([]interface{}{}) gob.Register(map[string]interface{}{})