This commit is contained in:
parent
fde50d21a6
commit
a6d910f56a
@ -49,6 +49,7 @@ export const POST = (async ({ request, cookies }) => {
|
|||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
include: { model: User, as: 'user' },
|
include: { model: User, as: 'user' },
|
||||||
|
order: [['created_at', 'DESC']],
|
||||||
offset: data.hash ? 0 : data.from || 0,
|
offset: data.hash ? 0 : data.from || 0,
|
||||||
limit: data.hash ? 1 : data.limit || 100
|
limit: data.hash ? 1 : data.limit || 100
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user