diff --git a/src/controllers/serviceController.ts b/src/controllers/serviceController.ts index 64c580b..fc735ab 100644 --- a/src/controllers/serviceController.ts +++ b/src/controllers/serviceController.ts @@ -71,7 +71,7 @@ export default class ServiceController { return await this.ain.getValue(creditHistoryPath) as creditHistories; } - async request(serviceName: string, requestData: string) : Promise { + async request(serviceName: string, requestData: any) : Promise { this.isRunning(serviceName); const result = await new Promise(async (resolve, reject) => { const requestKey = Date.now(); diff --git a/src/service.ts b/src/service.ts index 6caae0b..216fae7 100644 --- a/src/service.ts +++ b/src/service.ts @@ -76,7 +76,7 @@ export default class Service { * @param {string} requestData String data for request to service. * @returns {string} Response data from service. */ - async request(requestData: string) { + async request(requestData: any) { this.isLoggedIn(); return await this.serviceController.request(this.serviceName, requestData); }