[ACA-3245] Fetch alfresco repo name from an API (#5676)

* [ACA-3245] Fetch alfresco repo name from an API

* [ACA-3245] Take the repo name from the API only when it is not defined in the app config

* [ACA-3245] Remo alfresco-1 as default in app.config service

* [ACA-3245] Remove passing null argument when calling getRepositories function

* [ACA-3245] Revert removing function parameter includeAccounts

* [ACA-3245] Add tenantId as optional

* [ACA-3245] Revert method

* [ACA-3245] Change both parameters to optional

* [ACA-3245] Rename param
This commit is contained in:
arditdomi
2020-05-13 20:56:29 +01:00
committed by GitHub
parent f6801b1997
commit a8c252db8b
5 changed files with 27 additions and 23 deletions

View File

@@ -54,15 +54,14 @@ export class ActivitiContentService {
/**
* Returns a list of all the repositories configured
*
* @param accountId
* @param folderId
* @param tenantId
* @param includeAccount
*/
getAlfrescoRepositories(tenantId: number, includeAccount: boolean): Observable<any> {
getAlfrescoRepositories(tenantId?: number, includeAccount?: boolean): Observable<any> {
const apiService: AlfrescoApiCompatibility = this.apiService.getInstance();
const opts = {
tenantId: tenantId,
includeAccounts: includeAccount
tenantId,
includeAccounts: includeAccount ? includeAccount : true
};
return from(apiService.activiti.alfrescoApi.getRepositories(opts))
.pipe(