Преглед на файлове

Comment out code that caused an error

sbkwgh преди 8 години
родител
ревизия
0eba71fb73
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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)