This commit is contained in:
David Arranz 2024-10-09 16:29:51 +02:00
parent dc575dd468
commit 1bf3af5949
2 changed files with 5 additions and 1 deletions

View File

@ -76,6 +76,10 @@ export default (sequelize: Sequelize) => {
whereMergeStrategy: "and", // <- cómo tratar el merge de un scope
defaultScope: {
order: [["description", "ASC"]],
},
scopes: {
quickSearch(value) {
return {

View File

@ -4,4 +4,4 @@ export const INITIAL_PAGE_SIZE = 10;
export const MIN_PAGE_INDEX = 0;
export const MIN_PAGE_SIZE = 1;
export const MAX_PAGE_SIZE = 100; //Number.MAX_SAFE_INTEGER;
export const MAX_PAGE_SIZE = 9999; //Number.MAX_SAFE_INTEGER;