From afef88bf35605fc01950b7d33392a0f863fe1968 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sun, 24 Sep 2023 11:51:57 -0400 Subject: [PATCH] api returns all classes --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index c0fb01f..eff1c19 100644 --- a/server.js +++ b/server.js @@ -8,7 +8,7 @@ const client = new pg.Client({ app.use(express.static('public')) app.get('/instances', async (req, res)=>{ - const instances = await client.query("SELECT * FROM instances WHERE (course LIKE '%SEI%' OR course LIKE '%WDI%') AND graduates > 0"); + const instances = await client.query("SELECT * FROM instances WHERE graduates > 0"); res.json(instances.rows); })