1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-10 22:00:05 +00:00

fix: makeRequest retry, getFolderUri error catching

This commit is contained in:
Mihajlo Medjedovic
2020-08-04 20:39:09 +02:00
parent d7a7909529
commit 8474b222ea
2 changed files with 38 additions and 6 deletions

View File

@@ -1018,7 +1018,10 @@ export class SASViyaApiClient {
const { result: folder } = await this.request<Folder>(
`${this.serverUrl}${url}`,
requestInfo
);
).catch((err) => {
return {result: null};
})
if (!folder) return undefined;
return `/folders/folders/${folder.id}`;
}