🐛 Fix wrong authentication name (#908)

This commit is contained in:
Ricardo Espinoza 2020-08-31 15:31:50 -04:00 committed by GitHub
parent 0c2db741ef
commit 6fdbdb5957
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ export async function acuitySchedulingApiRequest(this: IHookFunctions | IExecute
}; };
try { try {
if (authenticationMethod === 'accessToken') { if (authenticationMethod === 'apiKey') {
const credentials = this.getCredentials('acuitySchedulingApi'); const credentials = this.getCredentials('acuitySchedulingApi');
if (credentials === undefined) { if (credentials === undefined) {
throw new Error('No credentials got returned!'); throw new Error('No credentials got returned!');