fix(rest/queue): logical error in response status handling (#549)

This commit is contained in:
ayntee
2021-02-26 21:18:10 +04:00
committed by GitHub
parent 03ffb63f0f
commit 7b482aeed1

View File

@@ -62,7 +62,7 @@ export async function processQueue(id: string) {
response.headers,
);
if (response.status < 200 && response.status >= 400) {
if (response.status < 200 || response.status >= 400) {
restCache.eventHandlers.error(
"httpError",
queuedRequest.payload,