From 36d0c375d6ccb6fd0b0f1af1a6214c77d48009b5 Mon Sep 17 00:00:00 2001 From: Anant Jain Date: Sat, 24 Feb 2024 09:31:30 +0530 Subject: [PATCH] fix: eslint ignore file path from root --- .eslintignore | 2 +- .prettierignore | 2 +- .../src/integrations/Ninetailed/browser.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.eslintignore b/.eslintignore index 2ade8d5636..25ed9702a5 100644 --- a/.eslintignore +++ b/.eslintignore @@ -11,10 +11,10 @@ stats/ *.config.js examples/chrome-extension/**/rudderAnalytics.js examples/chrome-extension/**/foreground.js -/integrations/Ninetailed/sample-app/ testBookSuites/ tsconfig.build.tsbuildinfo nativeSdkLoader.js nativeSdkLoader.ts +packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/ assets/ diff --git a/.prettierignore b/.prettierignore index ee9bddca4c..98bac07073 100644 --- a/.prettierignore +++ b/.prettierignore @@ -12,7 +12,7 @@ CONTRIBUTING.md examples/chrome-extension/**/rudderAnalytics.js examples/chrome-extension/**/foreground.js examples/**/index.html -**/integrations/Ninetailed/sample-app/ +packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/ **/public/index.html /.nx/cache \ No newline at end of file diff --git a/packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js b/packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js index ab0639a794..9735f3eb1c 100644 --- a/packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js +++ b/packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js @@ -36,8 +36,8 @@ class Ninetailed { identify(rudderElement) { const { message } = rudderElement; - const { userId, traits, context } = message; - const userTraits = { ...traits, ...context?.traits }; + const { userId, context } = message; + const userTraits = { ...context?.traits }; // for userId: until we don't pass the id to ninetailed, it will not make server identify call but is accepting the data window.ninetailed.identify(userId, userTraits); }