minor fix
This commit is contained in:
parent
9b85a2b1bb
commit
6c29d905d9
|
@ -103,7 +103,7 @@ export default async function getLink(userId: number, query: LinkRequestQuery) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const links = await prisma.link.findMany({
|
const links = await prisma.link.findMany({
|
||||||
take: Number(process.env.PAGINATION_TAKE_COUNT) || 20,
|
take: Number(process.env.PAGINATION_TAKE_COUNT) || 50,
|
||||||
skip: query.cursor ? 1 : undefined,
|
skip: query.cursor ? 1 : undefined,
|
||||||
cursor: query.cursor ? { id: query.cursor } : undefined,
|
cursor: query.cursor ? { id: query.cursor } : undefined,
|
||||||
where: {
|
where: {
|
||||||
|
|
|
@ -69,7 +69,7 @@ export default async function getLink(
|
||||||
}
|
}
|
||||||
|
|
||||||
const links = await prisma.link.findMany({
|
const links = await prisma.link.findMany({
|
||||||
take: Number(process.env.PAGINATION_TAKE_COUNT) || 20,
|
take: Number(process.env.PAGINATION_TAKE_COUNT) || 50,
|
||||||
skip: query.cursor ? 1 : undefined,
|
skip: query.cursor ? 1 : undefined,
|
||||||
cursor: query.cursor ? { id: query.cursor } : undefined,
|
cursor: query.cursor ? { id: query.cursor } : undefined,
|
||||||
where: {
|
where: {
|
||||||
|
|
Ŝarĝante…
Reference in New Issue