refactor: some renaming and corrections
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user