refactor: remove useless print

This commit is contained in:
Matthieu Bessat 2020-08-16 11:30:27 +02:00
parent 3670a53f51
commit bedcc818eb

View file

@ -16,7 +16,6 @@ export default class AdminOrganizationController {
let page: any = req.query.page == null ? '1' : req.query.page
page = parseInt(page)
let paginationOptions: any = {}
console.log(page, limit)
if (limit !== -1) {
paginationOptions = {
page, limit
@ -28,7 +27,6 @@ export default class AdminOrganizationController {
let sortWay: any = req.query.sortDesc == null ? 1 : (req.query.sortDesc == 'true' ? -1 : 1)
let sort: any = {}
sort[sortBy] = sortWay
console.log(sort, paginationOptions)
Organization.paginate({}, {
sort,
...paginationOptions