Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix newData fix lock type personal old and new comparison ignore created / updated at

Fendy Heryantocceb7ef59e1f
diff --git a/packages/nocodb/src/schema/swagger-v3.json b/packages/nocodb/src/schema/swagger-v3.json
index 42260314df..098bdf6201 100644
--- a/packages/nocodb/src/schema/swagger-v3.json
+++ b/packages/nocodb/src/schema/swagger-v3.json
@@ -5827,7 +5827,8 @@
"type": "string",
"enum": [
"collaborative",
- "locked"
+ "locked",
+ "personal"
],
"description": "Lock type of the view.\n\n Note: Assigning view as personal using API is not supported currently",
"default": "collaborative"
diff --git a/packages/nocodb/src/utils/view-webhook-manager.ts b/packages/nocodb/src/utils/view-webhook-manager.ts
index b4f1c942bd..324b9a10b7 100644
--- a/packages/nocodb/src/utils/view-webhook-manager.ts
+++ b/packages/nocodb/src/utils/view-webhook-manager.ts
@@ -157,6 +157,10 @@ export class ViewWebhookManager {
}
isOldAndNewEqual(oldView, newView) {
+ oldView.created_at = null;
+ oldView.updated_at = null;
+ newView.created_at = null;
+ newView.updated_at = null;
return (
JSON.stringify(objRemoveEmptyStringProps(oldView)) ===
JSON.stringify(objRemoveEmptyStringProps(newView))