Fixed table name
This commit is contained in:
@@ -280,7 +280,7 @@ app.post('/trigger/api/categories', async (req, res) => {
|
|||||||
|
|
||||||
app.delete('/trigger/api/categories', async (req, res) => {
|
app.delete('/trigger/api/categories', async (req, res) => {
|
||||||
conn = await pool.getConnection();
|
conn = await pool.getConnection();
|
||||||
const query = `DELETE FROM trigger_database.linkCategories WHERE id = '${req.body.id}'`;
|
const query = `DELETE FROM trigger_database.linkcategories WHERE id = '${req.body.id}'`;
|
||||||
conn.query(query).then((rows) => {
|
conn.query(query).then((rows) => {
|
||||||
res.status(200);
|
res.status(200);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user