From 523bb634550034b8fa87ccbbcb18626e3093a11b Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 20 Jun 2022 11:11:15 +0100 Subject: [PATCH] Added missing request context for user bindings --- packages/server/src/api/controllers/query/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/server/src/api/controllers/query/index.ts b/packages/server/src/api/controllers/query/index.ts index 21c9eb2a4c..19a547b401 100644 --- a/packages/server/src/api/controllers/query/index.ts +++ b/packages/server/src/api/controllers/query/index.ts @@ -175,6 +175,9 @@ async function execute(ctx: any, opts = { rowsOnly: false }) { parameters: enrichedParameters, transformer: query.transformer, queryId: ctx.params.queryId, + ctx: { + user: ctx.user, + }, }) const { rows, pagination, extra } = await quotas.addQuery(runFn)