Skip to content

Commit

Permalink
Fix toMillis() called twice on firestore doc message timestamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
zijianjoy committed Jan 26, 2020
1 parent 22ad71d commit 5e47593
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 5e47593

Please sign in to comment.