Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Updated Date settings for firestore
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Nguyen committed Jul 31, 2018
1 parent 184c48d commit 9583348
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions export.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ admin.initializeApp({
});

let db = admin.firestore();
db.settings({ timestampsInSnapshots: true });

let data = {};
data[collectionName] = {};
Expand Down
1 change: 1 addition & 0 deletions import.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ admin.initializeApp({
});

var db = admin.firestore();
db.settings({ timestampsInSnapshots: true });

fs.readFile(fileName, 'utf8', function(err, data){
if(err){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"author": "Dale Nguyen",
"license": "ISC",
"dependencies": {
"firebase-admin": "^5.8.0"
"firebase-admin": "^5.13.1"
}
}

0 comments on commit 9583348

Please sign in to comment.