From 848c9520736ccc0b5e31a06aa4ab524bec2a1211 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 6 Mar 2022 18:34:03 +0100 Subject: [PATCH] fix(back/AuthTokenController): fix auth tokens pagination size --- src/controllers/AuthTokenController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/AuthTokenController.ts b/src/controllers/AuthTokenController.ts index 6166570..ac62977 100644 --- a/src/controllers/AuthTokenController.ts +++ b/src/controllers/AuthTokenController.ts @@ -17,7 +17,7 @@ export default class AuthTokenController extends Controller { public async getAuthTokens(req: Request, res: Response): Promise { const allowedDomains = config.get('allowed_url_domains'); const user = req.as(RequireAuthMiddleware).getUser(); - const authTokens = await AuthToken.paginateForUser(req, 2, user.getOrFail('id')); + const authTokens = await AuthToken.paginateForUser(req, 25, user.getOrFail('id')); res.render('auth-tokens', { allowed_domains: allowedDomains, default_domain: allowedDomains[config.get('default_url_domain_for_files')],