Add presets page
This commit is contained in:
1 parent
c2d6c85e5d
commit
5a8d934239
8 files changed
+359
-3
No files matched your search
@@ -83,6 +83,8 @@ function query(resource, filter, options, callback) {
|
||||
docs = docs.map(d => mongodbFunctions.flattenFault(d));
|
||||
else if (resource === "tasks")
|
||||
docs = docs.map(d => mongodbFunctions.flattenTask(d));
|
||||
else if (resource === "presets")
|
||||
docs = docs.map(d => mongodbFunctions.flattenPreset(d));
|
||||
return resolve(docs);
|
||||
});
|
||||
else
|
||||
@@ -94,6 +96,8 @@ function query(resource, filter, options, callback) {
|
||||
doc = mongodbFunctions.flattenFault(doc);
|
||||
else if (resource === "tasks")
|
||||
doc = mongodbFunctions.flattenTask(doc);
|
||||
else if (resource === "presets")
|
||||
doc = mongodbFunctions.flattenPreset(doc);
|
||||
callback(doc);
|
||||
},
|
||||
err => {
|
||||
|
||||
Reference in new issue
Block a user