mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix compilation errors with latest TS/TSLint (#1651)
latest TS/TSLint libs detect couple of problems related to private apis used earlier; changing to public in order to fix compilation
This commit is contained in:
committed by
Mario Romano
parent
c35f948546
commit
3375a63680
@@ -37,13 +37,13 @@ export class AlfrescoSearchService {
|
||||
* @param options Additional options passed to the search
|
||||
* @returns {Observable<NodePaging>} Search results
|
||||
*/
|
||||
public getNodeQueryResults(term: string, options?: SearchOptions): Observable<NodePaging> {
|
||||
getNodeQueryResults(term: string, options?: SearchOptions): Observable<NodePaging> {
|
||||
return Observable.fromPromise(this.getQueryNodesPromise(term, options))
|
||||
.map(res => <NodePaging> res)
|
||||
.catch(err => this.handleError(err));
|
||||
}
|
||||
|
||||
private getQueryNodesPromise(term: string, opts: SearchOptions): Promise<NodePaging> {
|
||||
getQueryNodesPromise(term: string, opts: SearchOptions): Promise<NodePaging> {
|
||||
return this.apiService.getInstance().core.queriesApi.findNodes(term, opts);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user