mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Introduce overload for record-type node parameter (no-changelog) (#4648)
* 📘 Set up overload * 🔥 Remove inferrable record assertions * 👕 Fix semicolon * 👕 Fix another semicolon
This commit is contained in:
@@ -339,7 +339,7 @@ export class GoogleChat implements INodeType {
|
||||
const spaceId = this.getNodeParameter('spaceId', i) as string;
|
||||
|
||||
// get additional fields for threadKey and requestId
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
if (additionalFields.threadKey) {
|
||||
qs.threadKey = additionalFields.threadKey;
|
||||
}
|
||||
@@ -492,7 +492,7 @@ export class GoogleChat implements INodeType {
|
||||
const uri = this.getNodeParameter('incomingWebhookUrl', i) as string;
|
||||
|
||||
// get additional fields for threadKey
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
if (additionalFields.threadKey) {
|
||||
qs.threadKey = additionalFields.threadKey;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user