Fixing issue discovered by webhook test case.
This commit is contained in:
parent
421d98d5b7
commit
ce5feda3ed
|
@ -11,9 +11,6 @@ exports.getFetchResponse = async fetched => {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
message = "Failed to retrieve response"
|
message = "Failed to retrieve response"
|
||||||
}
|
}
|
||||||
if (typeof message !== "string") {
|
|
||||||
message = JSON.stringify(message)
|
|
||||||
}
|
|
||||||
return { status, message }
|
return { status, message }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue