Skip to content

Commit

Permalink
updated time to be set by the server
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianovide committed Jun 14, 2021
1 parent 719155b commit 4729421
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -63,7 +63,6 @@ typings/
.firebase
build
serviceAccountKey.json
scripts/tmp.jpg

.DS_Store

Expand Down
2 changes: 1 addition & 1 deletion scripts/populateDemoData.js
Expand Up @@ -74,7 +74,7 @@ async function addMetaDataSync(id, locationName) {
const rndDate = new Date(lastYear.getTime() + Math.random() * (now.getTime() - lastYear.getTime()));

const data = {
updated: rndDate,
updated: admin.firestore.FieldValue.serverTimestamp(),
location,
description: `${id} some text here ${locationName}`,
moderated: published ? rndDate : null,
Expand Down

0 comments on commit 4729421

Please sign in to comment.