messaging post migration cleanup (#19365)
Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
+1
-2
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user