Spaces:
Runtime error
Runtime error
rate limiting
Browse files- app/api/route.ts +3 -3
app/api/route.ts
CHANGED
@@ -27,9 +27,9 @@ export async function POST(
|
|
27 |
const count = await prisma.collection.count({
|
28 |
where: {
|
29 |
ip_address,
|
30 |
-
createdAt: {
|
31 |
-
|
32 |
-
}
|
33 |
}
|
34 |
})
|
35 |
|
|
|
27 |
const count = await prisma.collection.count({
|
28 |
where: {
|
29 |
ip_address,
|
30 |
+
// createdAt: {
|
31 |
+
// gte: new Date(Date.now() - 24 * 60 * 60 * 1000)
|
32 |
+
// }
|
33 |
}
|
34 |
})
|
35 |
|