diff --git a/packages/nocodb/src/lib/meta/api/helpers/apiHelpers.ts b/packages/nocodb/src/lib/meta/api/helpers/apiHelpers.ts index 5f2954aba2..08512fb1f3 100644 --- a/packages/nocodb/src/lib/meta/api/helpers/apiHelpers.ts +++ b/packages/nocodb/src/lib/meta/api/helpers/apiHelpers.ts @@ -1,6 +1,6 @@ import { NextFunction, Request, Response } from 'express'; import Ajv, { ErrorObject } from 'ajv'; -import addFormats from "ajv-formats"; +import addFormats from 'ajv-formats'; // @ts-ignore import swagger from '../../../../schema/swagger.json'; @@ -12,7 +12,7 @@ export function parseHrtimeToSeconds(hrtime) { const ajv = new Ajv({ strictSchema: false, strict: false }); // Initialize AJV ajv.addSchema(swagger, 'swagger.json'); -addFormats(ajv) +addFormats(ajv); // A middleware generator to validate the request body export const getAjvValidatorMw = (schema) => { diff --git a/packages/nocodb/src/lib/meta/api/helpers/columnHelpers.ts b/packages/nocodb/src/lib/meta/api/helpers/columnHelpers.ts index c692502dda..b8a9d57b2c 100644 --- a/packages/nocodb/src/lib/meta/api/helpers/columnHelpers.ts +++ b/packages/nocodb/src/lib/meta/api/helpers/columnHelpers.ts @@ -77,9 +77,7 @@ export async function createHmAndBtColumn( } } -export async function validateRollupPayload( - payload: ColumnReqType -) { +export async function validateRollupPayload(payload: ColumnReqType) { validateParams( [ 'title',