diff --git a/packages/nocodb/src/controllers/comments.controller.ts b/packages/nocodb/src/controllers/comments.controller.ts index b5889baa1b..c980465d05 100644 --- a/packages/nocodb/src/controllers/comments.controller.ts +++ b/packages/nocodb/src/controllers/comments.controller.ts @@ -11,7 +11,6 @@ import { Req, UseGuards, } from '@nestjs/common'; -import { Request } from 'express'; import { GlobalGuard } from '~/guards/global/global.guard'; import { PagedResponseImpl } from '~/helpers/PagedResponse'; import { CommentsService } from '~/services/comments.service'; diff --git a/packages/nocodb/src/meta/migrations/v2/nc_046_comment_mentions.ts b/packages/nocodb/src/meta/migrations/v2/nc_046_comment_mentions.ts index 9276a283d0..edf4bea25a 100644 --- a/packages/nocodb/src/meta/migrations/v2/nc_046_comment_mentions.ts +++ b/packages/nocodb/src/meta/migrations/v2/nc_046_comment_mentions.ts @@ -1,4 +1,3 @@ -import { Logger } from '@nestjs/common'; import type { Knex } from 'knex'; import { MetaTable } from '~/utils/globals'; diff --git a/packages/nocodb/src/meta/migrations/v2/nc_047_comment_migration.ts b/packages/nocodb/src/meta/migrations/v2/nc_047_comment_migration.ts index 6c02d8fcad..ff6a0178a4 100644 --- a/packages/nocodb/src/meta/migrations/v2/nc_047_comment_migration.ts +++ b/packages/nocodb/src/meta/migrations/v2/nc_047_comment_migration.ts @@ -38,7 +38,7 @@ const up = async (knex: Knex) => { .limit(READ_BATCH_SIZE + 1); logger.log( - `Data from Audit Table fetched, batch: ${offset} - ${ + `Data from Audit Table fetched, batch: ${offset} - ${ offset + READ_BATCH_SIZE }`, ); @@ -72,9 +72,7 @@ const up = async (knex: Knex) => { // check if there are more rows to fetch fetchNextBatch = rows.length > READ_BATCH_SIZE; } - logger.log( - 'Data migrated from Audit Table to Comments Table', - ); + logger.log('Data migrated from Audit Table to Comments Table'); }; const down = async (knex: Knex) => { diff --git a/packages/nocodb/src/schema/swagger-v2.json b/packages/nocodb/src/schema/swagger-v2.json index 2385784e61..fe4efa4652 100644 --- a/packages/nocodb/src/schema/swagger-v2.json +++ b/packages/nocodb/src/schema/swagger-v2.json @@ -12897,7 +12897,8 @@ "comment": { "type": "string", "description": "Description for the target row", - "example": "This is the comment for the row" + "example": "This is the comment for the row", + "maxLength": 3000 }, "fk_model_id": { "type": "string", @@ -12935,7 +12936,8 @@ "comment": { "type": "string", "description": "Description for the target row", - "example": "This is the comment for the row" + "example": "This is the comment for the row", + "maxLength": 3000 }, "fk_model_id": { "type": "string", diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index 3a61d497c7..81291c1d20 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -18927,7 +18927,8 @@ "comment": { "type": "string", "description": "Description for the target row", - "example": "This is the comment for the row" + "example": "This is the comment for the row", + "maxLength": 3000 }, "fk_model_id": { "type": "string", @@ -18965,7 +18966,8 @@ "comment": { "type": "string", "description": "Description for the target row", - "example": "This is the comment for the row" + "example": "This is the comment for the row", + "maxLength": 3000 }, "fk_model_id": { "type": "string", diff --git a/packages/nocodb/src/utils/richTextHelper.ts b/packages/nocodb/src/utils/richTextHelper.ts index 17490af436..f601769deb 100644 --- a/packages/nocodb/src/utils/richTextHelper.ts +++ b/packages/nocodb/src/utils/richTextHelper.ts @@ -6,8 +6,7 @@ export const extractMentions = (richText: string) => { const regex = /@\(([^)]+)\)/g; - let match: RegExpExecArray | null; - match = regex.exec(richText); + const match: RegExpExecArray | null = regex.exec(richText); while (match !== null) { const userId = match[1].split('|')[0]; // Extracts the userId part from the matched string mentions.push(userId);