improved env config

This commit is contained in:
Daniel
2023-07-21 10:17:26 -04:00
parent fb721fb67a
commit e7d76616ca
9 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export default async function getCollection(body: string) {
if (collection) {
const links = await prisma.link.findMany({
take: Number(process.env.PAGINATION_TAKE_COUNT),
take: Number(process.env.PAGINATION_TAKE_COUNT) || 20,
skip: query.cursor ? 1 : undefined,
cursor: query.cursor
? {