Browse Source

feat: Add env variables in webhook context

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
pull/341/head
Pranav C 3 years ago
parent
commit
c2fda9139d
  1. 3
      packages/nocodb/src/lib/noco/common/BaseModel.ts

3
packages/nocodb/src/lib/noco/common/BaseModel.ts

@ -249,7 +249,8 @@ class BaseModel<T extends BaseApiBuilder<any>> extends BaseModelSql {
return Handlebars.compile(template, {noEscape: true})({ return Handlebars.compile(template, {noEscape: true})({
data, data,
user: req?.user, user: req?.user,
payload payload,
env: process.env
}) })
} }
} }

Loading…
Cancel
Save