-
Notifications
You must be signed in to change notification settings - Fork 21
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address before merging in - no need to re-review.
resolve({data: data, count: c}); | ||
} | ||
}); | ||
} else { | ||
// console.log('search.error = ' + JSON.stringify(error)); | ||
console.log('search.error = ' + JSON.stringify(error)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove console.log
// return the paginated results with the total count | ||
resolve({data: sorted, count: cnt}); | ||
} else { | ||
console.log('search.error = ' + JSON.stringify(error)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove console.log
var name = req.query.collection; | ||
var Dbclass; | ||
var fields; | ||
switch(name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declare Dbclass at the top.
Remove the switch statement, turn it into an IF.
Reject if the name != 'documents'
return model.search (searchFields, queryOptions); | ||
} | ||
setSessionContext (req) | ||
.then (function (opts) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
for (var key in options.filterByFields) { | ||
if (options.filterByFields.hasOwnProperty(key)) { | ||
filter[key] = options.filterByFields[key]; | ||
console.log(filter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove console.log
@@ -1,10 +1,20 @@ | |||
'use strict'; | |||
|
|||
module.exports = function (app) { | |||
// Root routing | |||
var core = require('../controllers/core.server.controller'); | |||
var path = require('path'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A mix of spaces and tabs between vars and "="
<a ng-if="infoPanel.data.userCan.read" | ||
class="btn btn-sm btn-default" | ||
href="/api/document/{{ infoPanel.data._id }}/fetch" | ||
target="_self" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
target _blank.
controllerAs: 'instruct', | ||
size: 'lg' | ||
}); | ||
modalInstructions.result.then(function (data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of this?
ready |
Created by deleting my fork. Recreate fork. Take a directory with all the code and remove the .git references. Copy over the new fork. Then carefully determine what is in and not in.