mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
⚡ Minor improvements on Rocketchat Node
This commit is contained in:
parent
4ec458d56b
commit
70d2a988cc
|
@ -16,7 +16,11 @@ export async function rocketchatApiRequest(this: IExecuteFunctions | ILoadOption
|
||||||
}
|
}
|
||||||
|
|
||||||
const headerWithAuthentication = Object.assign({}, headers,
|
const headerWithAuthentication = Object.assign({}, headers,
|
||||||
{ 'X-Auth-Token': credentials.authKey, 'X-User-Id': credentials.userId });
|
{
|
||||||
|
'X-Auth-Token': credentials.authKey,
|
||||||
|
'X-User-Id': credentials.userId,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const options: OptionsWithUri = {
|
const options: OptionsWithUri = {
|
||||||
headers: headerWithAuthentication,
|
headers: headerWithAuthentication,
|
||||||
|
|
Loading…
Reference in a new issue