Skip to content

Commit

Permalink
fix: remove events when 200, no need to check response (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyang1520 authored Jan 18, 2023
1 parent 9207b46 commit 5b52d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amplitude-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ AmplitudeClient.prototype.sendEvents = function sendEvents() {
new Request(url, data, this.options.headers).send(function (status, response) {
scope._sending = false;
try {
if (status === 200 && response === 'success') {
if (status === 200) {
scope.removeEvents(maxEventId, maxIdentifyId, status, response);

// Update the event cache after the removal of sent events.
Expand Down

0 comments on commit 5b52d16

Please sign in to comment.