소스 검색

Add missing parameter

sbkwgh 8 년 전
부모
커밋
31034db9fd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)