From 7aea937ca9b19ad2fbd55cac9639872df67c9207 Mon Sep 17 00:00:00 2001 From: bprize15 Date: Mon, 30 Sep 2024 11:56:34 -0400 Subject: [PATCH] use firebase properties directly in backend --- .../java/org/mskcc/oncokb/curation/OncokbCurationApp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/mskcc/oncokb/curation/OncokbCurationApp.java b/src/main/java/org/mskcc/oncokb/curation/OncokbCurationApp.java index 5a24bbd18..c830cdef9 100644 --- a/src/main/java/org/mskcc/oncokb/curation/OncokbCurationApp.java +++ b/src/main/java/org/mskcc/oncokb/curation/OncokbCurationApp.java @@ -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; @@ -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);