mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-02 12:47:41 +02:00
Server: By default, sort user deletion in descending order
This commit is contained in:
parent
8d32cc794e
commit
68ffdc5c0f
@ -18,7 +18,7 @@ router.get('admin/user_deletions', async (_path: SubPath, ctx: AppContext) => {
|
||||
const user = ctx.joplin.owner;
|
||||
if (!user.is_admin) throw new ErrorForbidden();
|
||||
|
||||
const pagination = makeTablePagination(ctx.query, 'scheduled_time', PaginationOrderDir.ASC);
|
||||
const pagination = makeTablePagination(ctx.query, 'scheduled_time', PaginationOrderDir.DESC);
|
||||
const page = await ctx.joplin.models.userDeletion().allPaginated(pagination);
|
||||
const users = await ctx.joplin.models.user().loadByIds(page.items.map(d => d.user_id), { fields: ['id', 'email'] });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user