Improvements to PagerDuty-Node

This commit is contained in:
ricardo
2020-06-14 21:39:30 -04:00
parent 4dac84f506
commit acfc4fc39d
3 changed files with 12 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ export async function pagerDutyApiRequest(this: IExecuteFunctions | IWebhookFunc
options.headers = Object.assign({}, options.headers, headers);
try {
if (authenticationMethod === 'accessToken') {
if (authenticationMethod === 'apiToken') {
const credentials = this.getCredentials('pagerDutyApi');
if (credentials === undefined) {