Skip to content

Commit

Permalink
Merge pull request #284 from v1ack/heartbeat-status
Browse files Browse the repository at this point in the history
Consider 201 status code as success
  • Loading branch information
alanhamlett authored Oct 8, 2024
2 parents 0df991b + fc054d1 commit 0a4082e
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 @@ -210,7 +210,7 @@ class WakaTimeCore {
console.error(data.error);
return;
}
if (response.status === 202) {
if (response.status === 202 || response.status === 201) {
await Promise.all(
(data.responses ?? []).map(async (resp, respNumber) => {
if (resp[0].error) {
Expand Down

0 comments on commit 0a4082e

Please sign in to comment.