Procházet zdrojové kódy

Add missing parameter

sbkwgh před 8 roky
rodič
revize
31034db9fd
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)