mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 13:53:37 -05:00
await instead of return to catch error
GitOrigin-RevId: 3b96eeec1deb7edf01ff30671ef1a7e4a2446f66
This commit is contained in:
parent
9c87ad9801
commit
e900209d1d
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ async function enqueue(group, method, job) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return request({
|
await request({
|
||||||
uri: `${tpdsWorkerUrl}/enqueue/web_to_tpds_http_requests`,
|
uri: `${tpdsWorkerUrl}/enqueue/web_to_tpds_http_requests`,
|
||||||
json: { group, job, method },
|
json: { group, job, method },
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
Loading…
Reference in a new issue