diff --git a/lib/process-services-cloud/src/lib/app/services/apps-process-cloud.service.ts b/lib/process-services-cloud/src/lib/app/services/apps-process-cloud.service.ts index 5d907846b4e..06f636dee79 100644 --- a/lib/process-services-cloud/src/lib/app/services/apps-process-cloud.service.ts +++ b/lib/process-services-cloud/src/lib/app/services/apps-process-cloud.service.ts @@ -36,11 +36,11 @@ export class AppsProcessCloudService { * Gets a list of deployed apps for this user by status. * * @param status Required status value - * @param role to filter the apps + * @param roles to filter the apps * @returns The list of deployed apps */ - getDeployedApplicationsByStatus(status: string, role?: string): Observable { - return this.hasDeployedApps() ? of(this.deployedApps) : this.getApplicationsByStatus(status, role); + getDeployedApplicationsByStatus(status: string, roles?: string | string[]): Observable { + return this.hasDeployedApps() ? of(this.deployedApps) : this.getApplicationsByStatus(status, roles); } hasDeployedApps(): boolean { @@ -66,13 +66,13 @@ export class AppsProcessCloudService { } } - private getApplicationsByStatus(status: string, role?: string): Observable { + private getApplicationsByStatus(status: string, roles?: string | string[]): Observable { if (status === '') { return of([]); } const path = this.getApplicationUrl(); const pathParams = {}; - const queryParams = { status, roles: role, sort: 'name' }; + const queryParams = { status, roles, sort: 'name' }; const httpMethod = 'GET'; const headerParams = {}; const formParams = {};