messaging post migration cleanup (#19365)

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
neo773
2026-04-07 14:26:49 +05:30
committed by GitHub
parent 601dc02ed7
commit b23d2b4e73
32 changed files with 155 additions and 353 deletions
@@ -113,7 +113,7 @@ export const WorkflowEditActionEmailBase = ({
const filter: { or: object[] } = {
or: [
{
accountOwnerId: {
userWorkspaceId: {
eq: currentWorkspaceMember?.id,
},
},
@@ -139,7 +139,7 @@ export const WorkflowEditActionEmailBase = ({
handle: true,
provider: true,
scopes: true,
accountOwnerId: true,
userWorkspaceId: true,
connectionParameters: true,
},
});
@@ -181,7 +181,7 @@ export const WorkflowEditActionEmailBase = ({
label: account.handle,
value: account.id,
};
if (account.accountOwnerId === currentWorkspaceMember?.id) {
if (account.userWorkspaceId === currentWorkspaceMember?.id) {
connectedAccountOptions.push(selectOption);
} else {
emptyOption = selectOption;
@@ -53,8 +53,7 @@ const CONFIGURED_SEND_EMAIL_ACTION: WorkflowSendEmailAction = {
valid: true,
settings: {
input: {
connectedAccountId: mockedConnectedAccountRecords[0]
.accountOwnerId as string,
connectedAccountId: mockedConnectedAccountRecords[0].id as string,
recipients: {
to: 'test@twenty.com',
cc: '',