Spaces:
Paused
Paused
Deploy Bot commited on
Commit ·
1dfd3dd
1
Parent(s): 20eda70
Fix_ReferenceError_In_ShowSubCategories
Browse files136 unmodified lines137138139140140141142143136 unmodified lines};
// Show Subcategories (called when a parent category is clicked)exports.showSubCategories = async (ctx) => {exports.showSubCategories = async (ctx, parentId) => { try { const parent = await Category.findOne({ id: parentId }); const subCats = await Category.find({ parent: parentId });src/controllers/userController.js+1-1