File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,16 @@ const admin = require('firebase-admin');
8
8
var console = { log : debug } ;
9
9
10
10
function initializeApp ( ) {
11
+ const YOUR_PROJECT_ID = "firestorebeta1test2" ;
11
12
// [START initialize_app]
12
13
13
14
admin . initializeApp ( {
14
- credential : admin . credential . applicationDefault ( )
15
+ credential : admin . credential . applicationDefault ( ) ,
16
+ projectId : YOUR_PROJECT_ID
15
17
} ) ;
16
18
17
19
var db = admin . firestore ( ) ;
18
-
20
+
19
21
// [END initialize_app]
20
22
return db ;
21
23
}
Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test-debug" : " env GCLOUD_PROJECT=firestorebeta1test2 DEBUG=firestore-snippets-node mocha index.js" ,
8
- "test" : " env GCLOUD_PROJECT=firestorebeta1test2 ./node_modules/.bin/mocha --timeout 20000 index.js"
7
+ "test-debug" : " env DEBUG=firestore-snippets-node mocha index.js" ,
8
+ "test" : " env ./node_modules/.bin/mocha --timeout 20000 index.js"
9
9
},
10
10
"author" : " " ,
11
11
"license" : " ISC" ,
You can’t perform that action at this time.
0 commit comments