fix: remove labelId when sending gmail message
This commit is contained in:
@@ -140,24 +140,6 @@ export default defineAction({
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'Label',
|
|
||||||
key: 'labelId',
|
|
||||||
type: 'dropdown',
|
|
||||||
required: false,
|
|
||||||
description: '',
|
|
||||||
variables: true,
|
|
||||||
source: {
|
|
||||||
type: 'query',
|
|
||||||
name: 'getDynamicData',
|
|
||||||
arguments: [
|
|
||||||
{
|
|
||||||
name: 'key',
|
|
||||||
value: 'listLabels',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
|
|
||||||
async run($) {
|
async run($) {
|
||||||
@@ -172,7 +154,6 @@ export default defineAction({
|
|||||||
bodyType,
|
bodyType,
|
||||||
emailBody,
|
emailBody,
|
||||||
signature,
|
signature,
|
||||||
labelId,
|
|
||||||
} = $.step.parameters;
|
} = $.step.parameters;
|
||||||
const userId = $.auth.data.userId;
|
const userId = $.auth.data.userId;
|
||||||
|
|
||||||
@@ -218,7 +199,6 @@ export default defineAction({
|
|||||||
const base64EncodedEmailBody = Buffer.from(email).toString('base64');
|
const base64EncodedEmailBody = Buffer.from(email).toString('base64');
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
labelIds: [labelId],
|
|
||||||
raw: base64EncodedEmailBody,
|
raw: base64EncodedEmailBody,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user