sort feedback desc
All checks were successful
delpoy / build-and-deploy (push) Successful in 51s

This commit is contained in:
bytedream 2024-12-29 00:19:24 +01:00
parent fde50d21a6
commit a6d910f56a

View File

@ -49,6 +49,7 @@ export const POST = (async ({ request, cookies }) => {
}
: undefined,
include: { model: User, as: 'user' },
order: [['created_at', 'DESC']],
offset: data.hash ? 0 : data.from || 0,
limit: data.hash ? 1 : data.limit || 100
});