diff --git a/backend/src/controller/userController.js b/backend/src/controller/userController.js index ec0df433ed9bb24dd96befabe1e60ee0082fb92f..d130fd8a053523e94efb34c16dba6ded83354953 100644 --- a/backend/src/controller/userController.js +++ b/backend/src/controller/userController.js @@ -6,7 +6,7 @@ const Role = db.role; exports.fetchAll = (req, res) => { User.findAll({ - attributes: ['id', 'name', 'username'], + attributes: ['id', 'name'], include: [{ model: Role, attributes: ['id', 'name']