From aa414e2f9a9500e22eba69f419c0051d49370fae Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 15 Feb 2023 19:46:00 +0800 Subject: [PATCH] refactor(nocodb): partially update filter --- .../lib/version-upgrader/ncFilterUpgrader_0104004.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts b/packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts index 59f9fd8825..5089e9bd97 100644 --- a/packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts +++ b/packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts @@ -69,7 +69,6 @@ const migrateNullAndEmptyToBlankFilters = async ( await Filter.update( filter.id, { - ...filter, comparison_op: 'blank', }, ncMeta @@ -81,7 +80,6 @@ const migrateNullAndEmptyToBlankFilters = async ( await Filter.update( filter.id, { - ...filter, comparison_op: 'notblank', }, ncMeta @@ -127,7 +125,6 @@ const migrateMultiSelectEq = async ( await Filter.update( filter.id, { - ...filter, comparison_op: 'anyof', value: newFilterValue, }, @@ -140,7 +137,6 @@ const migrateMultiSelectEq = async ( await Filter.update( filter.id, { - ...filter, comparison_op: 'nanyof', value: newFilterValue, }, @@ -158,7 +154,6 @@ const migrateToCheckboxFilter = async (filter, actions: any[], ncMeta) => { await Filter.update( filter.id, { - ...filter, comparison_op: 'notchecked', }, ncMeta @@ -170,7 +165,6 @@ const migrateToCheckboxFilter = async (filter, actions: any[], ncMeta) => { await Filter.update( filter.id, { - ...filter, comparison_op: 'checked', }, ncMeta @@ -183,7 +177,6 @@ const migrateToCheckboxFilter = async (filter, actions: any[], ncMeta) => { await Filter.update( filter.id, { - ...filter, comparison_op: 'checked', value: '', }, @@ -196,7 +189,6 @@ const migrateToCheckboxFilter = async (filter, actions: any[], ncMeta) => { await Filter.update( filter.id, { - ...filter, comparison_op: 'notchecked', value: '', }, @@ -214,7 +206,6 @@ const migrateToCheckboxFilter = async (filter, actions: any[], ncMeta) => { await Filter.update( filter.id, { - ...filter, comparison_op: 'checked', value: '', }, @@ -227,7 +218,6 @@ const migrateToCheckboxFilter = async (filter, actions: any[], ncMeta) => { await Filter.update( filter.id, { - ...filter, comparison_op: 'notchecked', value: '', },