fix: if failed to validate body, trigger hashed task name flow
This commit is contained in:
@@ -138,11 +138,14 @@ async function checkIfTaskExists(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then(({ httpRequest: { body } }) => body);
|
.then(({ httpRequest }) => httpRequest?.body);
|
||||||
|
|
||||||
return isEqual(
|
return (
|
||||||
JSON.parse(Buffer.from(body as string, "base64").toString()),
|
body &&
|
||||||
expectedBody,
|
isEqual(
|
||||||
|
JSON.parse(Buffer.from(body as string, "base64").toString()),
|
||||||
|
expectedBody,
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user