Skip to content

Commit

Permalink
LF-4694 Return plain rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan-Brain committed Feb 5, 2025
1 parent acf2a96 commit f8771a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/api/src/controllers/farmAddonController.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ const farmAddonController = {
if (!rows.length) {
return res.sendStatus(404);
}
return res.sendStatus(200);
const result = rows.map(({ addon_partner_id, org_uuid }) => {
return { addon_partner_id, org_uuid };
});
return res.status(200).send(result);
} catch (error) {
console.error(error);
return res.status(500).json({
Expand Down

0 comments on commit f8771a4

Please sign in to comment.