浏览代码

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)