Skip to content

Commit

Permalink
fix: pipeline rerun
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmareines committed Oct 28, 2023
1 parent 7e89abc commit 0d1029e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/cvm/fundos.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ export const getFunds = async (size = 100, page = 1) => {

if (Number(size) > 200) {
throw new BadRequestError({
message: 'Tamanho máximo é de 200 registros por página',
message: 'Tamanho máximo da página é de 200 registros',
});
}

const pageSize = Number(size);

if (isNaN(offset) || isNaN(pageSize))
throw new BadRequestError({
message: 'Formato inválido de página e tamanho',
message: 'Página e tamanho devem ser números inteiros',
});

const fundData = await fetchCvmData();
Expand Down

0 comments on commit 0d1029e

Please sign in to comment.