refactor: some renaming and corrections

This commit is contained in:
Riccardo
2023-12-19 19:21:45 +01:00
parent c639f55067
commit 146ea54d71
18 changed files with 169 additions and 7545 deletions

View File

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