Explorar o código

Add missing parameter

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
31034db9fd
Modificáronse 1 ficheiros con 1 adicións e 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)