Skip to content

Commit

Permalink
test: tests usage of attributes in generated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvmx committed Mar 8, 2022
1 parent 5274e98 commit 68f6ab4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/controller/PixelController.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ async function getFeedingHistorybyID(req, res) {
return res.status(404).json({ error: "pixel not found" });
}

const history = await pixel.getFeedingHistories();
const history = await pixel.getFeedingHistories({
attributes: ["feature_name", "fed_at", "fed_by", "active"],
});

if (!history) {
return res.status(204);
}
Expand Down

0 comments on commit 68f6ab4

Please sign in to comment.