Skip to content

Commit

Permalink
tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
APandamonium1 committed Jul 9, 2024
1 parent f5781fa commit 9d7462d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions firebase.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,16 @@ func initializeFirebase() error {
if !found {
log.Fatalf("DATABASE_URL is not set in the environment variables")
}
opt := option.WithCredentialsFile("edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json")

// databaseURL := goDotEnvVariable("DATABASE_URL")
// if databaseURL == "" {
// return fmt.Errorf("DATABASE_URL is not set in the environment variables")
// }
// opt := option.WithCredentialsFile("edusync-test-firebase-adminsdk-hk5kl-9af0162b09.json")

conf := &firebase.Config{DatabaseURL: databaseURL}

opt := option.WithCredentialsFile("edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json")
//opt := option.WithCredentialsFile("edusync-test-firebase-adminsdk-hk5kl-9af0162b09.json")

app, err := firebase.NewApp(ctx, conf, opt)
if err != nil {
return fmt.Errorf("error initializing firebase app: %v", err)
Expand Down

0 comments on commit 9d7462d

Please sign in to comment.