Updated query with union
This commit is contained in:
@@ -163,7 +163,7 @@ app.delete("/trigger/api/apps", async (req, res) => {
|
||||
|
||||
app.get("/trigger/api/appCategories", async (req, res) => {
|
||||
conn = await pool.getConnection();
|
||||
const query = "SELECT DISTINCT filterName FROM trigger_database.apps;";
|
||||
const query = "SELECT filterName FROM trigger_database.apps UNION SELECT filterName FROM trigger_database.linkCategories;";
|
||||
conn.query(query).then((rows) => {
|
||||
res.status(200).send(rows);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user