From c2fda9139d1658dced1b21ffa55542b7ef2e3eda Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Wed, 30 Jun 2021 19:27:57 +0530 Subject: [PATCH] feat: Add env variables in webhook context Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- packages/nocodb/src/lib/noco/common/BaseModel.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/noco/common/BaseModel.ts b/packages/nocodb/src/lib/noco/common/BaseModel.ts index f6209ee231..e44541ec20 100644 --- a/packages/nocodb/src/lib/noco/common/BaseModel.ts +++ b/packages/nocodb/src/lib/noco/common/BaseModel.ts @@ -249,7 +249,8 @@ class BaseModel> extends BaseModelSql { return Handlebars.compile(template, {noEscape: true})({ data, user: req?.user, - payload + payload, + env: process.env }) } }