mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-30 05:07:14 +01:00
sorting contenttableentries
This commit is contained in:
@@ -31,9 +31,8 @@ export default async function handler(req: Request, res: Response) {
|
||||
take: limit,
|
||||
orderBy: orderByObj
|
||||
})
|
||||
.then((result: Article[]) => {
|
||||
.then((result: Article[]) => { //! ContentTableEntries not sorted
|
||||
if (result !== null) {
|
||||
|
||||
res.end(JSON.stringify(result));
|
||||
} else {
|
||||
const error: ResponseError = {
|
||||
|
||||
Reference in New Issue
Block a user