mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
⚡ Minor improvements to Line-Node
This commit is contained in:
parent
1ce19de200
commit
6125dee8f1
|
@ -102,7 +102,7 @@ export class Line implements INodeType {
|
||||||
}
|
}
|
||||||
delete body.stickerUi;
|
delete body.stickerUi;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (body.imageUi) {
|
if (body.imageUi) {
|
||||||
const image = (body.imageUi as IDataObject).imageValue as IDataObject;
|
const image = (body.imageUi as IDataObject).imageValue as IDataObject;
|
||||||
|
|
||||||
|
@ -126,8 +126,8 @@ export class Line implements INodeType {
|
||||||
} else {
|
} else {
|
||||||
body.imageFullsize = image.imageFullsize;
|
body.imageFullsize = image.imageFullsize;
|
||||||
body.imageThumbnail = image.imageThumbnail;
|
body.imageThumbnail = image.imageThumbnail;
|
||||||
}
|
}
|
||||||
delete body.imageUi;
|
delete body.imageUi;
|
||||||
}
|
}
|
||||||
responseData = await lineApiRequest.call(this, 'POST', '', {}, {}, 'https://notify-api.line.me/api/notify', { formData: body });
|
responseData = await lineApiRequest.call(this, 'POST', '', {}, {}, 'https://notify-api.line.me/api/notify', { formData: body });
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {
|
import {
|
||||||
INodeProperties,
|
INodeProperties,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
export const notificationOperations = [
|
export const notificationOperations = [
|
||||||
{
|
{
|
||||||
|
@ -28,9 +28,9 @@ export const notificationOperations = [
|
||||||
|
|
||||||
export const notificationFields = [
|
export const notificationFields = [
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* notification:send */
|
/* notification:send */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Message',
|
displayName: 'Message',
|
||||||
name: 'message',
|
name: 'message',
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in a new issue