await instead of return to catch error

GitOrigin-RevId: 3b96eeec1deb7edf01ff30671ef1a7e4a2446f66
This commit is contained in:
Ersun Warncke 2020-05-26 07:30:14 -04:00 committed by Copybot
parent 9c87ad9801
commit e900209d1d

View file

@ -104,7 +104,7 @@ async function enqueue(group, method, job) {
return
}
try {
return request({
await request({
uri: `${tpdsWorkerUrl}/enqueue/web_to_tpds_http_requests`,
json: { group, job, method },
method: 'post',