Skip to content

Commit

Permalink
Fixed pagination shops
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoFS96 committed Mar 23, 2022
1 parent 1bb67f3 commit fb966ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/controllers/shop.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ export async function getShops(
name?: string
) {
try {
const total = await prisma.shops.count();
const total = await prisma.shops.count({
where: {
authorization,
},
});
const users = await prisma.users.findMany({
where: {
rol: 3,
Expand Down

0 comments on commit fb966ea

Please sign in to comment.