[AAE-12501] Replace alfresco api client with AdfHttpClient

This commit is contained in:
Amedeo Lepore
2023-03-16 16:53:25 +01:00
committed by eromano
parent 3b9d1ace1b
commit fcb7962a05
2 changed files with 5 additions and 2 deletions

View File

@@ -129,7 +129,10 @@ export class AdfHttpClient implements ee.Emitter,JsApiHttpClient {
} }
); );
return this.requestWithLegacyEventEmitters<T>(request, emitters, options.returnType); if(emitters){
return this.requestWithLegacyEventEmitters<T>(request, emitters, options.returnType);
}
return request.toPromise<T>();
} }
post<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> { post<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {

View File

@@ -1,4 +1,4 @@
/*! s/*!
* @license * @license
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
* *