n0bisuke / node-red-contrib-line-messaging-api

NodeREDやenebularでLINE Messaging APIが利用できます。
https://flows.nodered.org/node/node-red-contrib-line-messaging-api
Apache License 2.0
6 stars 8 forks source link

Can assign the targetId by msg.targetId when apply push node. #6

Closed huangchinlin closed 1 year ago

huangchinlin commented 3 years ago

https://github.com/n0bisuke/node-red-contrib-line-messaging-api/blob/5906ce2769b657db977eec7a47aaa43a359c152f/nodes/push/push.js#L23

the idea is:

const userId = msg.targetId || node.credentials.targetId;