🐛 Fix issue with Dropbox App Folder type apps. (#1569)

#1542
This commit is contained in:
Ricardo Espinoza
2021-03-25 18:25:05 -04:00
committed by GitHub
parent 0a63701a13
commit be02fc8752
4 changed files with 54 additions and 8 deletions

View File

@@ -114,4 +114,12 @@ export function simplify(data: IDataObject[]) {
return results;
}
export function getCredentials(this: IExecuteFunctions) {
const authenticationMethod = this.getNodeParameter('authentication', 0) as string;
if (authenticationMethod === 'accessToken') {
return this.getCredentials('dropboxApi') as IDataObject;
} else {
return this.getCredentials('dropboxOAuth2Api') as IDataObject;
}
}