Pārlūkot izejas kodu

Comment out code that caused an error

sbkwgh 8 gadi atpakaļ
vecāks
revīzija
0eba71fb73
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      routes/category.js

+ 2 - 2
routes/category.js

@@ -8,8 +8,8 @@ router.get('/', async (req, res) => {
 	try {
 		let categories = await Category.findAll({
 			attributes: { exclude: ['id'] },
-			include: Category.includeOptions(1),
-			order: ['updatedAt', 'DESC']
+			include: Category.includeOptions(1)/*,
+			order: ['updatedAt', 'DESC']*/
 		})
 
 		res.json(categories)