mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-26 18:51:50 +02:00
18 lines
410 B
JavaScript
18 lines
410 B
JavaScript
import Settings from '@overleaf/settings'
|
|
import OError from '@overleaf/o-error'
|
|
import { fetchJson } from '@overleaf/fetch-utils'
|
|
|
|
async function getQueues(userId) {
|
|
try {
|
|
return await fetchJson(`${Settings.apis.tpdsworker.url}/queues/${userId}`)
|
|
} catch (err) {
|
|
throw OError.tag(err, 'failed to query TPDS queues for user', { userId })
|
|
}
|
|
}
|
|
|
|
export default {
|
|
promises: {
|
|
getQueues,
|
|
},
|
|
}
|