Add complaint
This commit is contained in:
@@ -41,7 +41,10 @@ module.exports.gets = [
|
||||
|
||||
module.exports.get = [
|
||||
async(req, res)=>{
|
||||
const complaint = await Complaint.findById(req.params.id)
|
||||
const complaint = await Complaint.findByIdAndUpdate(
|
||||
req.params.id,
|
||||
{read: true}
|
||||
)
|
||||
|
||||
res.status(200).json(complaint)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user