From bf37db99852b20f7477c1913ba8a0ee8542d182c Mon Sep 17 00:00:00 2001 From: Sander Hahn Date: Mon, 19 Aug 2019 16:37:20 +0200 Subject: [PATCH] fix offset --- site/src/routes/apps/index.json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/routes/apps/index.json.js b/site/src/routes/apps/index.json.js index dcc2205ee9..4c6faa0699 100644 --- a/site/src/routes/apps/index.json.js +++ b/site/src/routes/apps/index.json.js @@ -3,7 +3,7 @@ import { query } from '../../utils/db'; export async function get(req, res) { if (req.user) { - const offset = req.params.offset || 0; + const offset = req.query.offset || 0; const rows = await query(` select g.uid, g.name, coalesce(g.updated_at, g.created_at) as updated_at from gists g