Skip to content

Commit

Permalink
Update server/api.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sztupy authored Oct 11, 2023
1 parent 15ead82 commit dd4d0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ router.get("/", async(_, res) => {
};
// Select sentences from sentences table
const sentences = await db.query(
"SELECT sentence FROM sentences WHERE count >= 1"
"SELECT sentence FROM sentences"
);
const randomSentences = [];
for (let sentence of sentences.rows) {
Expand Down

0 comments on commit dd4d0f4

Please sign in to comment.