Skip to content

Commit

Permalink
#140, fix last post undefined and null checks when getting from db so…
Browse files Browse the repository at this point in the history
… gets used in bot run
  • Loading branch information
thrize committed Apr 9, 2018
1 parent 738048e commit bcfded1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.js
Expand Up @@ -1522,7 +1522,7 @@ function initLib(initSteem, callback) {
console.log("no last post, probably this is first run for server");
throw err;
} else {
if (lastPost !== undefined && lastPost !== null) {
if (post !== undefined && post !== null) {
lastPost = post;
console.log("got last post, id: "+lastPost.id);
} else {
Expand Down

0 comments on commit bcfded1

Please sign in to comment.