Skip to content

Commit

Permalink
fix: resolve() conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 24, 2023
1 parent 7a9e88f commit ffb5af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
delete data.status
socket.send(JSON.stringify(data));
data.status = "sent"
} else {
} else if (data.status !== "queued") {
data.status = "queued"
resolve(data)
}
Expand Down

0 comments on commit ffb5af7

Please sign in to comment.