Skip to content

Commit

Permalink
Update envs
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Saakian committed Mar 22, 2020
1 parent 89c34fd commit ab6388d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@ dist
# TernJS port file
.tern-port

src/config/firebaseKey.json
src/config/firebaseKey.json

firebaseKey.json
File renamed without changes.
3 changes: 3 additions & 0 deletions src/config/firebase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const firebaseKey = require('../../firebaseKey.json');

module.export = firebaseKey;
3 changes: 1 addition & 2 deletions src/utils/firestore.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const admin = require('firebase-admin');

const serviceAccount = require('../config/firebaseKey.json');
const serviceAccount = require('../config/firebase');

admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
Expand Down

0 comments on commit ab6388d

Please sign in to comment.