mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
use Url instead for url for "url" module
to avoid possible conflicts with use of url as a variable
This commit is contained in:
parent
d83cd547fb
commit
b55c469b91
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ request = require('request')
|
|||
Project = require("../../models/Project").Project
|
||||
ProjectEntityHandler = require("../Project/ProjectEntityHandler")
|
||||
logger = require "logger-sharelatex"
|
||||
url = require("url")
|
||||
Url = require("url")
|
||||
ClsiCookieManager = require("./ClsiCookieManager")
|
||||
|
||||
|
||||
|
@ -75,7 +75,7 @@ module.exports = ClsiManager =
|
|||
_parseOutputFiles: (project_id, rawOutputFiles = []) ->
|
||||
outputFiles = []
|
||||
for file in rawOutputFiles
|
||||
path = url.parse(file.url).path
|
||||
path = Url.parse(file.url).path
|
||||
path = path.replace("/project/#{project_id}/output/", "")
|
||||
outputFiles.push
|
||||
path: path
|
||||
|
|
Loading…
Reference in a new issue