"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.optionsPaginate = void 0;
const { PaginationParameters } = require("mongoose-paginate-v2");
const defaultPaginate = {
    page: 1,
    limit: 10,
};
const optionsPaginate = (req) => {
    const paginate = new PaginationParameters(req).get();
    return [{}, { ...defaultPaginate, ...paginate[1] }];
};
exports.optionsPaginate = optionsPaginate;
