Explorar el Código

Add missing parameter

sbkwgh hace 8 años
padre
commit
31034db9fd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)