mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 19:34:26 +00:00
no file subtype can be an issue, added a check on it in the keybuilder
This commit is contained in:
parent
158b640b59
commit
7c2e4b00ed
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ module.exports =
|
||||||
|
|
||||||
templateFileKey: (req, res, next)->
|
templateFileKey: (req, res, next)->
|
||||||
{template_id, format, version, sub_type} = req.params
|
{template_id, format, version, sub_type} = req.params
|
||||||
req.key = "#{template_id}/v/#{version}/#{format}/#{sub_type}"
|
req.key = "#{template_id}/v/#{version}/#{format}"
|
||||||
|
if sub_type?
|
||||||
|
req.key = "#{req.key}/#{sub_type}"
|
||||||
req.bucket = settings.filestore.stores.template_files
|
req.bucket = settings.filestore.stores.template_files
|
||||||
req.version = version
|
req.version = version
|
||||||
opts = req.query
|
opts = req.query
|
||||||
|
|
Loading…
Reference in a new issue