Files
Verso/services/web/app/src/Features/ThirdPartyDataStore/TpdsQueueManager.mjs
T
Eric Mc SweenandCopybot a3682af6e4 Merge pull request #33710 from overleaf/em-tpds-config
Clean up tpdsworker config from web and third-party-datastore

GitOrigin-RevId: 3856126d9dc856fea4bc4133b11402c35b10630b
2026-05-18 08:06:25 +00:00

20 lines
431 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.thirdPartyDataStore.url}/queues/${userId}`
)
} catch (err) {
throw OError.tag(err, 'failed to query TPDS queues for user', { userId })
}
}
export default {
promises: {
getQueues,
},
}