Skip to content

Commit a55b2d4

Browse files
committed
chore: change article order
1 parent 5579245 commit a55b2d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/controllers/articleController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class ArticleController {
213213
}
214214

215215
static async delete(req, res) {
216-
try { WHERE `articles`.`id` = 13
216+
try {
217217
const { id } = req.params;
218218

219219
const article = await Article.findOne({
@@ -312,7 +312,7 @@ class ArticleController {
312312
if(is_featured){
313313
article.is_featured = is_featured;
314314
}
315-
315+
316316
if(is_published){
317317
article.is_published = is_published;
318318
}

0 commit comments

Comments
 (0)