Skip to content
Snippets Groups Projects
Commit 555a4988 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: offline precomputed fix

parent 43be0517
No related branches found
No related tags found
No related merge requests found
......@@ -169,8 +169,8 @@ datasetsRouter.get('/kgInfo', checkKgQuery, cacheMaxAge24Hr, async (req, res) =>
const { kgId } = req.query
const { user } = req
try{
const stream = await getDatasetFromId({ user, kgId, returnAsStream: true })
stream.pipe(res).on('error', getHandleErrorFn(req, res))
const stream = await getDatasetFromId({ user, kgId, returnAsStream: true }).on('error', getHandleErrorFn(req, res))
stream.pipe(res)
}catch(e){
getHandleErrorFn(req, res)(e)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment