Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Fix flow issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Whale committed Apr 4, 2018
1 parent 678fd5f commit 8139445
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion athena/queues/track-user-thread-last-seen.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export default async (job: Job<UserThreadLastSeenJobData>) => {
const record = await getUsersThread(userId, threadId);

if (record) {
if (new Date(record.lastSeen).getTime() > new Date(date).getTime()) {
if (
record.lastSeen &&
new Date(record.lastSeen).getTime() > new Date(date).getTime()
) {
debug(
`old lastSeen ${
record.lastSeen
Expand Down

0 comments on commit 8139445

Please sign in to comment.