Fix content-manager offset for SQL databases

This commit is contained in:
Aurelsicoko 2017-12-12 16:24:19 +01:00
parent 628ad4add4
commit 61d75648b0
3 changed files with 4 additions and 4 deletions

View File

@ -55,4 +55,4 @@
"npm": ">= 5.3.0"
},
"license": "MIT"
}
}

View File

@ -46,4 +46,4 @@
"npm": ">= 5.0.0"
},
"license": "MIT"
}
}

View File

@ -11,9 +11,9 @@ module.exports = {
qb.orderBy(params.sort);
}
qb.offset(params.skip);
qb.offset(_.toNumber(params.skip));
qb.limit(params.limit);
qb.limit(_.toNumber(params.limit));
}).fetchAll({
withRelated: this.associations.map(x => x.alias)
});