From b5d7c601e953d563ff52c19376dd5ad15771722d Mon Sep 17 00:00:00 2001 From: Yoojin Ko Date: Wed, 6 Dec 2023 12:20:40 +0900 Subject: [PATCH] fix: get requestData to any --- src/controllers/serviceController.ts | 2 +- src/service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }