chore: add otp based login
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
exports.paginationOptions = ({ page, limit, sort }) => {
|
||||
const parsedPage = parseInt(page, 10) || 1;
|
||||
const parsedLimit = parseInt(limit, 10) || 10;
|
||||
const parsedSort = sort === "asc" ? "asc" : "desc";
|
||||
|
||||
return {
|
||||
page: parsedPage,
|
||||
limit: parsedLimit,
|
||||
sort: parsedSort,
|
||||
skip: (parsedPage - 1) * parsedLimit,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user