From efd4496d48c4ab45146b6bd7a0aebf2510afcb79 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Wed, 20 Mar 2024 10:27:51 +0000 Subject: [PATCH] Reenable no-prototype-builtins --- .eslintrc.json | 2 -- packages/server/src/integrations/utils.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 11864a18fd..9b4eb7eebb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -42,7 +42,6 @@ }, "rules": { "no-unused-vars": "off", - "no-prototype-builtins": "off", "local-rules/no-budibase-imports": "error" } }, @@ -60,7 +59,6 @@ }, "rules": { "no-unused-vars": "off", - "no-prototype-builtins": "off", "local-rules/no-test-com": "error", "local-rules/email-domain-example-com": "error", "no-console": "warn", diff --git a/packages/server/src/integrations/utils.ts b/packages/server/src/integrations/utils.ts index 91966658a6..f73f522357 100644 --- a/packages/server/src/integrations/utils.ts +++ b/packages/server/src/integrations/utils.ts @@ -330,7 +330,7 @@ function copyExistingPropsOver( const existingTableSchema = entities[tableName].schema for (let key in existingTableSchema) { - if (!existingTableSchema.hasOwnProperty(key)) { + if (!Object.prototype.hasOwnProperty.call(existingTableSchema, key)) { continue } const column = existingTableSchema[key]