We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5579245 commit a55b2d4Copy full SHA for a55b2d4
backend/controllers/articleController.js
@@ -213,7 +213,7 @@ class ArticleController {
213
}
214
215
static async delete(req, res) {
216
- try { WHERE `articles`.`id` = 13
+ try {
217
const { id } = req.params;
218
219
const article = await Article.findOne({
@@ -312,7 +312,7 @@ class ArticleController {
312
if(is_featured){
313
article.is_featured = is_featured;
314
315
-
+
316
if(is_published){
317
article.is_published = is_published;
318
0 commit comments