I'm facing an issue with combining responses from two promises using the `combineResponse` function. Only one response from the `ptmResponse` promise is being resolved while I have responses from both promises. How can I fix this error in my code implementation? The response comes as an object that I need to push into an array.
main.ts
try {
const __data: IResponse = await makeRequest(this._request);
const specResponse = await this.specResponse(__data.Details[0]);
const ptmResponse = await this.ptmAccountBalanceResponse(__data.Details[1]);
const combineResponse = {
...specResponse,
...ptmResponse
};
return Promise.resolve(combineResponse);
} catch (err) {
return Promise.reject(err);
}