Procházet zdrojové kódy

Comment out code that caused an error

sbkwgh před 8 roky
rodič
revize
0eba71fb73
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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)