Skip to content

Commit

Permalink
Update fireEngine.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nickscamara committed Oct 12, 2024
1 parent 35b15f1 commit af06b42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api/src/search/fireEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ export async function fireEngineMap(
url: `${process.env.FIRE_ENGINE_BETA_URL}/search`,
headers: {
"Content-Type": "application/json",
"X-Disable-Cache": "true"
},
data: data,
};
const response = await axios(config);
if (response && response) {
if (response && response.data) {
return response.data;
} else {
return [];
Expand Down

0 comments on commit af06b42

Please sign in to comment.