feat: limit comments on homepage
This commit is contained in:
parent
a3d6ea4b69
commit
631a77510f
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@ export class DatabasePrisma implements Database {
|
||||||
username: true
|
username: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
orderBy: {
|
||||||
|
createdAt: 'desc'
|
||||||
|
},
|
||||||
|
take: 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue