🐛 Fix wrong authentication name (#908)

This commit is contained in:
Ricardo Espinoza authored and GitHub committed 2020-08-31 21:31:50 +02:00
1 parent 0c2db741ef
commit 6fdbdb5957
1 file changed
+1 -1
@@ -24,7 +24,7 @@ export async function acuitySchedulingApiRequest(this: IHookFunctions | IExecute
};
try {
if (authenticationMethod === 'accessToken') {
if (authenticationMethod === 'apiKey') {
const credentials = this.getCredentials('acuitySchedulingApi');
if (credentials === undefined) {
throw new Error('No credentials got returned!');