diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index e2338d1..a744cc0 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -7,6 +7,9 @@ spring: mongodb: uri: ${MONGO_URI:} database: ${MONGO_DATABASE:} + web: + pageable: + max-page-size: 10000 mail: username: ${MAIL_USERNAME:} diff --git a/console_aziendale/src/services/campaign.services.js b/console_aziendale/src/services/campaign.services.js index 4cdb619..5fa6be6 100644 --- a/console_aziendale/src/services/campaign.services.js +++ b/console_aziendale/src/services/campaign.services.js @@ -48,7 +48,7 @@ function getAllCampaigns(companyId = null) { else url = url + process.env.VUE_APP_ALL_CAMPAIGNS_API return axios.get(url,{ params: { - size: 1200 + size: 1000 } }).then( res => { diff --git a/console_aziendale/src/services/company.services.js b/console_aziendale/src/services/company.services.js index 0c93ff5..c90349c 100644 --- a/console_aziendale/src/services/company.services.js +++ b/console_aziendale/src/services/company.services.js @@ -16,7 +16,7 @@ export const companyService = { function getAllCompanies() { return axios.get(process.env.VUE_APP_BASE_URL + process.env.VUE_APP_COMPANIES_API,{ params: { - size: 1200 + size: 1000 } }).then( res => { diff --git a/console_aziendale/src/services/employee.services.js b/console_aziendale/src/services/employee.services.js index 746c6b6..2820137 100644 --- a/console_aziendale/src/services/employee.services.js +++ b/console_aziendale/src/services/employee.services.js @@ -32,7 +32,7 @@ function importEmployees(companyId,file) { function getAllEmployees(companyId) { return axios.get(process.env.VUE_APP_BASE_URL + process.env.VUE_APP_COMPANIES_API + '/' + companyId + '/' + process.env.VUE_APP_EMPLOYEES_API, { params: { - size: 1200 + size: 10000 } }).then( res => { diff --git a/console_aziendale/src/services/location.services.js b/console_aziendale/src/services/location.services.js index 1b00c90..1bc0f85 100644 --- a/console_aziendale/src/services/location.services.js +++ b/console_aziendale/src/services/location.services.js @@ -49,7 +49,7 @@ function importLocations(companyId,file) { //get all the companies function getAllLocations(companyId) { return axios.get(process.env.VUE_APP_BASE_URL + process.env.VUE_APP_COMPANIES_API+ '/' + companyId + '/' +process.env.VUE_APP_LOCATIONS_API,{ params: { - size: 1200 + size: 1000 } } ).then( res => {