changed all models to typescript

This commit is contained in:
canove
2020-09-19 08:15:47 -03:00
parent b04c0b878e
commit 99fa2cea61
22 changed files with 629 additions and 162 deletions

View File

@@ -28,7 +28,7 @@ const ListUsersService = async ({
{ email: { [Op.like]: `%${searchParam.toLowerCase()}%` } }
]
};
const limit = 10;
const limit = 20;
const offset = limit * (+pageNumber - 1);
const { count, rows: users } = await User.findAndCountAll({