Skip to content

Commit

Permalink
Merge pull request #34 from billyjbryant/libre-linkup
Browse files Browse the repository at this point in the history
fix: Fixing Libre Linkup Crash
  • Loading branch information
bewest authored Nov 25, 2024
2 parents 24baa42 + 0e8cf6e commit 57ea221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sources/librelinkup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57ea221

Please sign in to comment.