style: general tweaking

This commit is contained in:
Riccardo
2023-12-18 18:17:50 +01:00
parent 37ffb951a9
commit 5407e2cf79
10 changed files with 99 additions and 115 deletions

View File

@@ -6,10 +6,10 @@ export async function GET() {
orderBy: {
createdAt: 'desc'
},
take: 50
take: 100
});
if (news && news.length === 50) {
if (news && news.length === 100) {
return ApiResponse(200, JSON.stringify(news));
}