From eeacc257c6bbc324aadd024870b16cd2dbea3bd5 Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Wed, 28 Aug 2019 12:42:58 +0200 Subject: [PATCH] bugfix: do not cache downloadkgfiles endpoint --- deploy/datasets/index.js | 2 +- deploy/datasets/query.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/deploy/datasets/index.js b/deploy/datasets/index.js index aae972842..cb6968646 100644 --- a/deploy/datasets/index.js +++ b/deploy/datasets/index.js @@ -136,7 +136,7 @@ datasetsRouter.get('/kgInfo', checkKgQuery, cacheMaxAge24Hr, async (req, res) => stream.pipe(res) }) -datasetsRouter.get('/downloadKgFiles', checkKgQuery, cacheMaxAge24Hr, async (req, res) => { +datasetsRouter.get('/downloadKgFiles', checkKgQuery, async (req, res) => { const { kgId } = req.query const { user } = req try { diff --git a/deploy/datasets/query.js b/deploy/datasets/query.js index 2f44472d9..1516c3e45 100644 --- a/deploy/datasets/query.js +++ b/deploy/datasets/query.js @@ -406,12 +406,11 @@ const getDatasetFileAsZip = async ({ user, kgId } = {}) => { } const result = await getDatasetFromId({ user, kgId }) - const { option } = await getUserKGRequestParam({ user }) const { files } = result const zip = archiver('zip') for (let file of files) { const { name, absolutePath } = file - zip.append(request(absolutePath, option), { name }) + zip.append(request(absolutePath), { name }) } zip.finalize() -- GitLab