1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-26 18:58:21 +02:00

Solved the typescript error.

This commit is contained in:
Hubert 2023-08-17 10:51:14 -03:00
parent eefebb2444
commit cde490a59b

View File

@ -100,7 +100,7 @@ router.get('admin/users', async (_path: SubPath, ctx: AppContext) => {
await userModel.checkIfAllowed(ctx.joplin.owner, AclAction.List); await userModel.checkIfAllowed(ctx.joplin.owner, AclAction.List);
const showDisabled = ctx.query.show_disabled === '1'; const showDisabled = ctx.query.show_disabled === '1';
const searchQuery = (ctx.query.query && ctx.query.query.toLowerCase()) || ''; const searchQuery = (ctx.query.query && ctx.query.query.toString().toLowerCase()) || '';
const pagination = makeTablePagination(ctx.query, 'full_name', PaginationOrderDir.ASC); const pagination = makeTablePagination(ctx.query, 'full_name', PaginationOrderDir.ASC);
pagination.limit = 1000; pagination.limit = 1000;