From e10943e6f8cd957c5fbfd440fe87a07ba66258be Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 29 Mar 2023 12:13:23 +0100 Subject: [PATCH] Removing external table validation - will have to come up with a best way to do this and a test suite for it. --- .../server/src/api/controllers/row/external.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/server/src/api/controllers/row/external.ts b/packages/server/src/api/controllers/row/external.ts index ee796e32d4..9fb92cccc2 100644 --- a/packages/server/src/api/controllers/row/external.ts +++ b/packages/server/src/api/controllers/row/external.ts @@ -56,13 +56,6 @@ export async function patch(ctx: UserCtx) { const id = inputs._id // don't save the ID to db delete inputs._id - const validateResult = await utils.validate({ - row: inputs, - tableId, - }) - if (!validateResult.valid) { - throw { validation: validateResult.errors } - } return handleRequest(Operation.UPDATE, tableId, { id: breakRowIdField(id), row: inputs, @@ -73,13 +66,6 @@ export async function patch(ctx: UserCtx) { export async function save(ctx: UserCtx) { const inputs = ctx.request.body const tableId = ctx.params.tableId - const validateResult = await utils.validate({ - row: inputs, - tableId, - }) - if (!validateResult.valid) { - throw { validation: validateResult.errors } - } return handleRequest(Operation.CREATE, tableId, { row: inputs, includeSqlRelationships: IncludeRelationship.EXCLUDE,