refactor: remove useless print
This commit is contained in:
parent
3670a53f51
commit
bedcc818eb
1 changed files with 0 additions and 2 deletions
|
@ -16,7 +16,6 @@ export default class AdminOrganizationController {
|
||||||
let page: any = req.query.page == null ? '1' : req.query.page
|
let page: any = req.query.page == null ? '1' : req.query.page
|
||||||
page = parseInt(page)
|
page = parseInt(page)
|
||||||
let paginationOptions: any = {}
|
let paginationOptions: any = {}
|
||||||
console.log(page, limit)
|
|
||||||
if (limit !== -1) {
|
if (limit !== -1) {
|
||||||
paginationOptions = {
|
paginationOptions = {
|
||||||
page, limit
|
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 sortWay: any = req.query.sortDesc == null ? 1 : (req.query.sortDesc == 'true' ? -1 : 1)
|
||||||
let sort: any = {}
|
let sort: any = {}
|
||||||
sort[sortBy] = sortWay
|
sort[sortBy] = sortWay
|
||||||
console.log(sort, paginationOptions)
|
|
||||||
Organization.paginate({}, {
|
Organization.paginate({}, {
|
||||||
sort,
|
sort,
|
||||||
...paginationOptions
|
...paginationOptions
|
||||||
|
|
Loading…
Reference in a new issue