Skip to content

Commit

Permalink
Merge pull request #488 from firebase/fixfirestore
Browse files Browse the repository at this point in the history
Fix toMillis() called twice on firestore doc message timestamp.
  • Loading branch information
zijianjoy committed Jan 26, 2020
2 parents 22ad71d + 5e47593 commit b8eca16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion performance-monitoring-start/public/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function loadMessages() {
deleteMessage(change.doc.id);
} else {
var message = change.doc.data();
displayMessage(change.doc.id, message.timestamp.toMillis(), message.name,
displayMessage(change.doc.id, message.timestamp, message.name,
message.text, message.profilePicUrl, message.imageUrl);
}
});
Expand Down
2 changes: 1 addition & 1 deletion performance-monitoring/public/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function loadMessages() {
deleteMessage(change.doc.id);
} else {
var message = change.doc.data();
displayMessage(change.doc.id, message.timestamp.toMillis(), message.name,
displayMessage(change.doc.id, message.timestamp, message.name,
message.text, message.profilePicUrl, message.imageUrl);
}
});
Expand Down

0 comments on commit b8eca16

Please sign in to comment.