Closed camilovegag closed 3 months ago
When fetching api/options/${optionId} at frontend, an array is returned:
{ "data": [ { "id": "41990593-090c-4e7a-8433-c63e917ea52a", "userId": "8e1b5532-634e-4bc8-87b6-0adb2b3beffc", "registrationId": null, "questionId": "1639b7ea-1e23-427d-a604-bbac04c31b8d", "optionTitle": "MEV Extraction in Decentralized Finance: Impacts and Solutions\t", "optionSubTitle": "This study comprehensively analyzes the impact of Maximum Extractable...", "accepted": true, "createdAt": "2024-04-16T00:19:55.395Z", "updatedAt": "2024-04-30T15:26:34.551Z" } ] }
But as we are fetching a single option, it should return an object
When fetching api/options/${optionId} at frontend, an array is returned:
But as we are fetching a single option, it should return an object