mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-8924] Failing Sonar job (#4219)
This commit is contained in:
@@ -89,7 +89,7 @@ export class FavoritesPageApi {
|
||||
return Promise.resolve(isFavorite);
|
||||
}
|
||||
};
|
||||
return Utils.retryCall(favorite);
|
||||
return await Utils.retryCall(favorite);
|
||||
} catch (error) {}
|
||||
return isFavorite;
|
||||
}
|
||||
@@ -112,7 +112,7 @@ export class FavoritesPageApi {
|
||||
return Promise.resolve(totalItems);
|
||||
}
|
||||
};
|
||||
return Utils.retryCall(favoriteFiles);
|
||||
return await Utils.retryCall(favoriteFiles);
|
||||
} catch {}
|
||||
}
|
||||
|
||||
|
@@ -125,7 +125,7 @@ export class FileActionsApi {
|
||||
return Promise.resolve(isLocked);
|
||||
}
|
||||
};
|
||||
return Utils.retryCall(locked, data.retry);
|
||||
return await Utils.retryCall(locked, data.retry);
|
||||
} catch {}
|
||||
return isLocked;
|
||||
}
|
||||
|
@@ -48,7 +48,7 @@ export class NodesApi {
|
||||
aspectNames: string[] = null
|
||||
): Promise<NodeEntry | null> {
|
||||
try {
|
||||
return this.createNode('cm:folder', name, parentId, title, description, null, author, null, aspectNames);
|
||||
return await this.createNode('cm:folder', name, parentId, title, description, null, author, null, aspectNames);
|
||||
} catch (error) {
|
||||
console.error(`${this.constructor.name} ${this.createFolder.name}`, error);
|
||||
return null;
|
||||
@@ -65,7 +65,7 @@ export class NodesApi {
|
||||
aspectNames: string[] = null
|
||||
): Promise<NodeEntry> {
|
||||
try {
|
||||
return this.createNode('cm:content', name, parentId, title, description, null, author, majorVersion, aspectNames);
|
||||
return await this.createNode('cm:content', name, parentId, title, description, null, author, majorVersion, aspectNames);
|
||||
} catch (error) {
|
||||
console.error(`${this.constructor.name} ${this.createFile.name}`, error);
|
||||
return null;
|
||||
@@ -74,7 +74,7 @@ export class NodesApi {
|
||||
|
||||
async createFiles(names: string[], relativePath = '/'): Promise<NodePaging> {
|
||||
try {
|
||||
return this.createContent({ files: names }, relativePath);
|
||||
return await this.createContent({ files: names }, relativePath);
|
||||
} catch (error) {
|
||||
console.error(`${this.constructor.name} ${this.createFiles.name}: ${error}`);
|
||||
return null;
|
||||
@@ -83,7 +83,7 @@ export class NodesApi {
|
||||
|
||||
async createFolders(names: string[], relativePath = '/'): Promise<NodePaging> {
|
||||
try {
|
||||
return this.createContent({ folders: names }, relativePath);
|
||||
return await this.createContent({ folders: names }, relativePath);
|
||||
} catch (error) {
|
||||
console.error(`${this.constructor.name} ${this.createFolders.name}: ${error}`);
|
||||
return null;
|
||||
|
@@ -50,7 +50,7 @@ export class QueriesApi {
|
||||
}
|
||||
};
|
||||
|
||||
return Utils.retryCall(sites);
|
||||
return await Utils.retryCall(sites);
|
||||
} catch (error) {
|
||||
console.error(`QueriesApi waitForSites : catch : `);
|
||||
console.error(`\tExpected: ${data.expect} items, but found ${error}`);
|
||||
|
@@ -73,7 +73,7 @@ export class SearchPageApi {
|
||||
}
|
||||
};
|
||||
|
||||
return Utils.retryCall(searchFiles);
|
||||
return await Utils.retryCall(searchFiles);
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
|
@@ -89,7 +89,7 @@ export class SharedLinksApi {
|
||||
}
|
||||
};
|
||||
|
||||
return Utils.retryCall(sharedFile);
|
||||
return await Utils.retryCall(sharedFile);
|
||||
} catch (error) {
|
||||
console.error(`SharedLinksApi waitForFilesToBeShared : catch : ${error}`);
|
||||
console.error(`\tWait timeout reached waiting for files to be shared`);
|
||||
@@ -132,7 +132,7 @@ export class SharedLinksApi {
|
||||
}
|
||||
};
|
||||
|
||||
return Utils.retryCall(sharedFile);
|
||||
return await Utils.retryCall(sharedFile);
|
||||
} catch (error) {
|
||||
console.error(`SharedLinksApi waitForFilesToNotBeShared : catch : ${error}`);
|
||||
console.error(`\tWait timeout reached waiting for files to no longer be shared`);
|
||||
|
Reference in New Issue
Block a user