8000 Workaround for missing root props on Foxx apps · jameswei/arangodb@131da2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 131da2e

Browse files
committed
Workaround for missing root props on Foxx apps
Fixes arangodb#1547.
1 parent 5370213 commit 131da2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/common/modules/org/arangodb/foxx/manager-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var fs = require("fs");
3535
var _ = require('underscore');
3636
var arangodb = require("org/arangodb");
3737
var db = arangodb.db;
38-
var download = require("internal").download;
38+
var internal = require('internal');
3939

4040
var throwFileNotFound = arangodb.throwFileNotFound;
4141
var throwDownloadError = arangodb.throwDownloadError;
@@ -245,7 +245,7 @@ function processGithubRepository (source) {
245245
var tempFile = fs.getTempFile("downloads", false);
246246

247247
try {
248-
var result = download(url, "", {
248+
var result = internal.download(url, "", {
249249
method: "get",
250250
followRedirects: true,
251251
timeout: 30
@@ -298,7 +298,7 @@ function listJson (showPrefix, onlyDevelopment) {
298298
contributors: doc.manifest.contributors || false,
299299
license: doc.manifest.license,
300300
version: doc.version,
301-
path: fs.join(fs.makeAbsolute(doc.root), doc.path),
301+
path: fs.join(fs.makeAbsolute(doc.root || internal.appPath), doc.path),
302302
config: getConfiguration(doc.manifest.configuration, doc.options.configuration),
303303
deps: getDependencies(doc.manifest.dependencies, doc.options.dependencies),
304304
scripts: getScripts(doc.manifest.scripts),

0 commit comments

Comments
 (0)
0