π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
trim titles for several things
Fendy Heryantod0d0648c95c8
diff --git a/packages/nocodb/src/services/api-tokens.service.ts b/packages/nocodb/src/services/api-tokens.service.tsindex 68ad327109..615a92f7c9 100644--- a/packages/nocodb/src/services/api-tokens.service.ts+++ b/packages/nocodb/src/services/api-tokens.service.ts@@ -37,6 +37,7 @@ export class ApiTokensService {// Get SSO client ID if user logged in via SSOconst ssoClientId = (param.req.user as any)?.extra?.sso_client_id;+ param.tokenBody.description = param.tokenBody.description?.trim();const token = await ApiToken.insert({...param.tokenBody,fk_user_id: param.userId,diff --git a/packages/nocodb/src/services/integrations.service.ts b/packages/nocodb/src/services/integrations.service.tsindex e0f5b991e8..d5e3f82ebf 100644--- a/packages/nocodb/src/services/integrations.service.ts+++ b/packages/nocodb/src/services/integrations.service.ts@@ -58,6 +58,7 @@ export class IntegrationsService {const oldIntegration = await Integration.get(context, param.integrationId);const integrationBody = param.integration;+ integrationBody.title = integrationBody.title?.trim();const integration = await Integration.updateIntegration(context,param.integrationId,@@ -269,7 +270,7 @@ export class IntegrationsService {integrationBody = param.integration;}param.logger?.('Creating the integration');-+ integrationBody.title = integrationBody.title?.trim();// for SQLite check for existing integration which refers to the same fileif (integrationBody.sub_type === 'sqlite3') {// get all integrations of type sqlite3diff --git a/packages/nocodb/src/services/mcp.service.ts b/packages/nocodb/src/services/mcp.service.tsindex 26def89047..59c831116c 100644--- a/packages/nocodb/src/services/mcp.service.ts+++ b/packages/nocodb/src/services/mcp.service.ts@@ -22,6 +22,8 @@ export class McpTokenService {payload.fk_workspace_id = context.workspace_id;payload.base_id = context.base_id;+ payload.title = payload.title?.trim();+return await MCPToken.insert(context, payload);}diff --git a/packages/nocodb/src/services/sources.service.ts b/packages/nocodb/src/services/sources.service.tsindex 6ace77f767..93479e6639 100644--- a/packages/nocodb/src/services/sources.service.ts+++ b/packages/nocodb/src/services/sources.service.ts@@ -164,6 +164,7 @@ export class SourcesService {// type | base | baseIdconst baseBody = param.source;+ baseBody.alias = baseBody.alias?.trim();const base = await Base.getWithInfo(context, param.baseId);let error;