Skip to content

Commit

Permalink
use firebase properties directly in backend (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
bprize15 authored Sep 30, 2024
1 parent 88e15ca commit cc47b5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void importOncoKbSequence() throws ApiException, IOException {
@PostConstruct
public void initFirebase() throws IOException {
if (applicationProperties.getFirebase().isEnabled()) {
String serviceAccountPath = applicationProperties.getFrontend().getFirebase().getServiceAccountCredentialsPath();
String serviceAccountPath = applicationProperties.getFirebase().getServiceAccountCredentialsPath();
if (serviceAccountPath == null) {
log.error("application.firebase.service-account-credentials-path is not specified");
return;
Expand All @@ -113,7 +113,7 @@ public void initFirebase() throws IOException {
try {
FirebaseOptions options = FirebaseOptions.builder()
.setCredentials(GoogleCredentials.fromStream(serviceAccountFileUrl.openStream()))
.setDatabaseUrl(applicationProperties.getFrontend().getFirebase().getDatabaseUrl())
.setDatabaseUrl(applicationProperties.getFirebase().getDatabaseUrl())
.build();

FirebaseApp.initializeApp(options);
Expand Down

0 comments on commit cc47b5a

Please sign in to comment.