Skip to content

Commit

Permalink
update timestamp parameter #397 (#398)
Browse files Browse the repository at this point in the history
* update timestamp parameter

Firestore returns Timestamp object with nanoseconds and seconds.

* update timestamp.toMillis()
  • Loading branch information
rakhi2104 authored and jhuleatt committed Apr 24, 2019
1 parent d2ff235 commit b8eae78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud-functions/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, message.name,
displayMessage(change.doc.id, message.timestamp.toMillis(), message.name,
message.text, message.profilePicUrl, message.imageUrl);
}
});
Expand Down

0 comments on commit b8eae78

Please sign in to comment.