Browse Source

Add missing parameter

sbkwgh 8 năm trước cách đây
mục cha
commit
31034db9fd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      routes/category.js

+ 1 - 1
routes/category.js

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