Minor improvements on Rocketchat Node

This commit is contained in:
Jan Oberhauser 2021-01-24 20:38:16 +01:00
parent 4ec458d56b
commit 70d2a988cc
2 changed files with 10 additions and 6 deletions

View file

@ -16,7 +16,11 @@ export async function rocketchatApiRequest(this: IExecuteFunctions | ILoadOption
}
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 = {
headers: headerWithAuthentication,