Browse Source

fix: extend dayjs with isBetween plugin

pull/7438/head
Pranav C 10 months ago
parent
commit
2aefd721e7
  1. 3
      packages/nocodb/src/helpers/webhookHelpers.ts

3
packages/nocodb/src/helpers/webhookHelpers.ts

@ -5,11 +5,14 @@ import { useAgent } from 'request-filtering-agent';
import { Logger } from '@nestjs/common';
import dayjs from 'dayjs';
import { isDateMonthFormat, UITypes } from 'nocodb-sdk';
import isBetween from 'dayjs/plugin/isBetween';
import NcPluginMgrv2 from './NcPluginMgrv2';
import type { HookLogType } from 'nocodb-sdk';
import type { Column, FormView, Hook, Model, View } from '~/models';
import { Filter, HookLog, Source } from '~/models';
dayjs.extend(isBetween);
Handlebars.registerHelper('json', function (context) {
return JSON.stringify(context);
});

Loading…
Cancel
Save