Skip to content

Commit

Permalink
Skipped duplicate heartbeats should be treated as successfully received
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Oct 8, 2024
1 parent 73c0892 commit 7c7f749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/WakaTimeCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class WakaTimeCore {
if (resp[0].error) {
await this.putHeartbeatsBackInQueue(heartbeats.filter((h, i) => i === respNumber));
console.error(resp[0].error);
} else if ((resp[1] === 201 || resp[1] === 202) && resp[0].data?.id) {
} else if (resp[1] === 201 || resp[1] === 202) {
await changeExtensionStatus('allGood');
} else {
if (resp[1] !== 400) {
Expand Down

0 comments on commit 7c7f749

Please sign in to comment.