Skip to content

Commit

Permalink
Consider 201 status code as success
Browse files Browse the repository at this point in the history
  • Loading branch information
v1ack committed Oct 4, 2024
1 parent 46a1d3b commit 26661b7
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 @@ -222,7 +222,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 26661b7

Please sign in to comment.