enzostvs HF Staff commited on
Commit
3df25d0
·
1 Parent(s): f7561cb
Files changed (1) hide show
  1. app/api/collections/route.ts +2 -1
app/api/collections/route.ts CHANGED
@@ -15,10 +15,11 @@ export async function GET(request: Request) {
15
  is_admin = await isAdmin(headers) as boolean
16
  }
17
 
18
- const query: Record<string, any> = {
19
  orderBy: {
20
  id: 'desc'
21
  },
 
22
  take: 15,
23
  skip: page * 15
24
  }
 
15
  is_admin = await isAdmin(headers) as boolean
16
  }
17
 
18
+ const query: any = {
19
  orderBy: {
20
  id: 'desc'
21
  },
22
+ where: {},
23
  take: 15,
24
  skip: page * 15
25
  }