Chat report table working
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const { chatlog, reports } = require('../database/models');
|
||||
|
||||
//admin/reports
|
||||
const route = async (req, res) => {
|
||||
const reps = await reports.destroy({
|
||||
where: {
|
||||
chatlogId: req.body.chatlogId
|
||||
}
|
||||
});
|
||||
|
||||
//respond
|
||||
res.status(200).end();
|
||||
};
|
||||
|
||||
module.exports = route;
|
||||
Reference in New Issue
Block a user