Spaces:
Runtime error
Runtime error
rewrite
Browse files
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:
|
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 |
}
|