Browse Source

fix: define handlebar json extension

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 1 year ago
parent
commit
17fe8f34b7
  1. 4
      packages/nocodb-nest/src/helpers/webhookHelpers.ts

4
packages/nocodb-nest/src/helpers/webhookHelpers.ts

@ -5,6 +5,10 @@ import NcPluginMgrv2 from './NcPluginMgrv2';
import type { Column, FormView, Hook, Model, View } from '../models';
import type { HookLogType } from 'nocodb-sdk';
Handlebars.registerHelper('json', function (context) {
return JSON.stringify(context);
});
export function parseBody(template: string, data: any): string {
if (!template) {
return template;

Loading…
Cancel
Save