corrections

This commit is contained in:
Carlos Jimenez 2018-01-18 15:27:35 +01:00
parent 2a0b52b094
commit 300f3d543a
3 changed files with 4 additions and 3 deletions

View File

@ -35,4 +35,4 @@
</vn-card>
<a ui-sref="clientCard.greuge.create" fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
</a>
</a>

View File

@ -12,5 +12,5 @@ export function restoreFixtures() {
// connection.connect();
// connection.query('CALL truncateDatabase');
// connection.disconect();
// console.log('fixtures restored');
console.log('dirty fixtures');
}

View File

@ -158,6 +158,7 @@ module.exports = function(Self) {
this[methodName] = (params, cb) => {
let filter = removeEmpty(filterCb(params));
var response = {};
function returnValues() {
@ -181,6 +182,7 @@ module.exports = function(Self) {
returnValues();
}
});
this.count(filter.where, function(err, totalCount) {
if (err) {
error();
@ -229,4 +231,3 @@ function removeEmpty(o) {
function isEmpty(value) {
return value === undefined || value === "";
}