From eecd035994ac353492fb0188cc91859b2e288f69 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 25 Nov 2023 11:08:12 +0530 Subject: [PATCH] fix: skip validation and hooks when updating column options - update all occurrence --- packages/nocodb/src/services/columns.service.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/services/columns.service.ts b/packages/nocodb/src/services/columns.service.ts index 732c7f6657..0a6e904059 100644 --- a/packages/nocodb/src/services/columns.service.ts +++ b/packages/nocodb/src/services/columns.service.ts @@ -731,7 +731,10 @@ export class ColumnsService { ]); } else { await baseModel.bulkUpdateAll( - { where: `(${column.title},eq,${option.title})` }, + { + where: `(${column.title},eq,${option.title})`, + skipValidationAndHooks: true, + }, { [column.column_name]: newOp.title }, { cookie }, ); @@ -817,7 +820,10 @@ export class ColumnsService { ]); } else { await baseModel.bulkUpdateAll( - { where: `(${column.title},eq,${ch.temp_title})` }, + { + where: `(${column.title},eq,${ch.temp_title})`, + skipValidationAndHooks: true, + }, { [column.column_name]: newOp.title }, { cookie }, );