The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fixed eslint warnings on changed files (#15928)
Aman Raj02238516206e
diff --git a/packages/twenty-server/scripts/setup-db.ts b/packages/twenty-server/scripts/setup-db.tsindex 0da66548028..d62642982c0 100644--- a/packages/twenty-server/scripts/setup-db.ts+++ b/packages/twenty-server/scripts/setup-db.ts@@ -1,5 +1,3 @@-import console from 'console';-import { rawDataSource } from 'src/database/typeorm/raw/raw.datasource';import { camelToSnakeCase, performQuery } from './utils';@@ -84,6 +82,7 @@ $$;`,}}).catch((err) => {+ // eslint-disable-next-line no-consoleconsole.error('Error during Data Source initialization:', err);});diff --git a/packages/twenty-server/scripts/truncate-db.ts b/packages/twenty-server/scripts/truncate-db.tsindex 11655227857..8b865a8a451 100644--- a/packages/twenty-server/scripts/truncate-db.ts+++ b/packages/twenty-server/scripts/truncate-db.ts@@ -1,5 +1,3 @@-import console from 'console';-import { rawDataSource } from 'src/database/typeorm/raw/raw.datasource';import { performQuery } from './utils';@@ -13,8 +11,8 @@ async function dropSchemasSequentially() {(await performQuery<{ schema_name: string }[]>(`SELECT n.nspname AS "schema_name"- FROM pg_catalog.pg_namespace n- WHERE n.nspname !~ '^pg_'+ FROM pg_catalog.pg_namespace n+ WHERE n.nspname !~ '^pg_'AND n.nspname <> 'information_schema'AND n.nspname NOT IN ('metric_helpers', 'user_management', 'public')`,@@ -35,9 +33,10 @@ async function dropSchemasSequentially() {),);}-+ // eslint-disable-next-line no-consoleconsole.log('All schemas dropped successfully.');} catch (err) {+ // eslint-disable-next-line no-consoleconsole.error('Error during schema dropping:', err);}}diff --git a/packages/twenty-server/scripts/utils.ts b/packages/twenty-server/scripts/utils.tsindex 2f0602f17b8..6dab908532e 100644--- a/packages/twenty-server/scripts/utils.ts+++ b/packages/twenty-server/scripts/utils.ts@@ -1,5 +1,3 @@-import console from 'console';-import { rawDataSource } from 'src/database/typeorm/raw/raw.datasource';export const camelToSnakeCase = (str: string) =>@@ -15,6 +13,7 @@ export const performQuery = async <T = unknown>(const result = await rawDataSource.query<T>(query);if (withLog) {+ // eslint-disable-next-line no-consoleconsole.log(`Performed '${consoleDescription}' successfully`);}@@ -28,6 +27,7 @@ export const performQuery = async <T = unknown>(message = `Failed to perform '${consoleDescription}': ${err}`;}if (withLog) {+ // eslint-disable-next-line no-consoleconsole.error(message);}}