The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix: bypass permission checks in 1.21 backfill-message-thread-subject command (#19375)
Félix Malfait7053e1bbc5dd
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-21/1-21-backfill-message-thread-subject.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-21/1-21-backfill-message-thread-subject.command.tsindex 8a75ece51e7..922d5eb6b74 100644--- a/packages/twenty-server/src/database/commands/upgrade-version-command/1-21/1-21-backfill-message-thread-subject.command.ts+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/1-21/1-21-backfill-message-thread-subject.command.ts@@ -44,6 +44,8 @@ export class BackfillMessageThreadSubjectCommand extends ActiveOrSuspendedWorkspAND table_name = 'messageThread'AND column_name = 'subject'`,[schemaName],+ undefined,+ { shouldBypassPermissionChecks: true },);if (columnExists.length === 0) {@@ -64,6 +66,9 @@ export class BackfillMessageThreadSubjectCommand extends ActiveOrSuspendedWorksp) subWHERE mt.id = sub."messageThreadId"AND mt."subject" IS NULL`,+ undefined,+ undefined,+ { shouldBypassPermissionChecks: true },);this.logger.log(