Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
loomkoom committed Apr 18, 2022
1 parent d93e033 commit e4f5cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions steam_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ client.once('changelist', function (changeNumber) {
if (err) {
return console.log(err);
} else {
lastChangeNumber = JSON.parse(data).changeNumber;
lastChangeNumber = parseInt(JSON.parse(data).changeNumber);
console.log(lastChangeNumber)
lastChangeNumber = Math.max(parseInt(data), changeNumber - 5000)
lastChangeNumber = Math.max(lastChangeNumber, changeNumber - 5000)
console.log(lastChangeNumber)
}
client.getProductChanges(lastChangeNumber).then((result) => {
Expand Down

0 comments on commit e4f5cdc

Please sign in to comment.