Spaces:
Running
Running
Update app.js
Browse files
app.js
CHANGED
|
@@ -15,7 +15,7 @@ try {
|
|
| 15 |
const serviceAccount = JSON.parse(process.env.FIREBASE_SERVICE_ACCOUNT_JSON);
|
| 16 |
|
| 17 |
|
| 18 |
-
if (serviceAccount && serviceAccount != null) {
|
| 19 |
const serviceAccount = JSON.parse(fs.readFileSync('./serviceAccountKey.json', 'utf8'));
|
| 20 |
admin.initializeApp({
|
| 21 |
credential: admin.credential.cert(serviceAccount),
|
|
|
|
| 15 |
const serviceAccount = JSON.parse(process.env.FIREBASE_SERVICE_ACCOUNT_JSON);
|
| 16 |
|
| 17 |
|
| 18 |
+
if (serviceAccount && serviceAccount != null && serviceAccount != {}) {
|
| 19 |
const serviceAccount = JSON.parse(fs.readFileSync('./serviceAccountKey.json', 'utf8'));
|
| 20 |
admin.initializeApp({
|
| 21 |
credential: admin.credential.cert(serviceAccount),
|