Skip to content

Commit

Permalink
fix: bug in returning assays from endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 17, 2024
1 parent 96c8ba2 commit 68105c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/assays.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import db from "./db.mjs";

export const list = () => {
return db.findAll("SELECT id, name FROM assays ORDER BY id")
.then(rows => rows.map((r) => r.name).filter((a) => AVAILABLE_ASSAYS_SET.includes(a)));
.then(rows => rows.map((r) => r.name).filter((a) => AVAILABLE_ASSAYS_SET.has(a)));
};

export default {
Expand Down

0 comments on commit 68105c5

Please sign in to comment.