From 798b53dc1211156cf8f2f62c813f63abeb1485b5 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 11 Oct 2021 15:50:36 -0700 Subject: [PATCH] fix variable shadowing --- site/src/routes/apps/index.json.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/src/routes/apps/index.json.js b/site/src/routes/apps/index.json.js index cc210f3054..e6b7d42e5b 100644 --- a/site/src/routes/apps/index.json.js +++ b/site/src/routes/apps/index.json.js @@ -1,10 +1,10 @@ -import { query } from '../../utils/db'; +import { query as db_query } from '../../utils/db'; export async function get({ query, locals }) { if (locals.user) { const page_size = 100; const offset = query.get('offset') ? parseInt(query.get('offset')) : 0; - const rows = await query(` + const rows = await db_query(` select g.uid, g.name, coalesce(g.updated_at, g.created_at) as updated_at from gists g where g.user_id = $1