diff --git a/lib/sources/librelinkup.js b/lib/sources/librelinkup.js index e7151bd..6d79baa 100644 --- a/lib/sources/librelinkup.js +++ b/lib/sources/librelinkup.js @@ -121,7 +121,7 @@ function linkUpSource (opts, axios) { var { status, data, ticket } = payload; var batch = data; // TODO: TRANSFORM - var last_updated = last_known.entries; + var last_updated = (last_known && last_known.entries) ? last_known.entries : null; function is_newer (elem) { if (!last_known) { return true; }; return last_known.entries < new Date(elem.dateString);