mirror of https://gitee.com/bigwinds/arangodb
Foxx: Upgrade Alpha Routes. Fixes #589
This commit is contained in:
parent
65705428f1
commit
95e409763d
|
@ -486,6 +486,18 @@
|
|||
return result;
|
||||
});
|
||||
|
||||
addTask("removeOldFoxxRoutes", "Remove all old Foxx Routes", function () {
|
||||
var potentialFoxxes = getCollection('_routing');
|
||||
|
||||
potentialFoxxes.iterate(function (maybeFoxx) {
|
||||
if (maybeFoxx.foxxMount) {
|
||||
// This is a Foxx! Let's delete it
|
||||
potentialFoxxes.remove(maybeFoxx._id);
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
// loop through all tasks and execute them
|
||||
console.log("Found " + allTasks.length + " defined task(s), "
|
||||
|
|
Loading…
Reference in New Issue