refactor(optimization):Correct accommodation of user roles #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ Refactor (optimization): Correct accommodation of user roles
🚀 Resumen general
Esta PR realiza una refactorización profunda y mejoras en la gestión de roles de usuario, optimizando la estructura del backend y simplificando el manejo de usuarios.
Se eliminaron dependencias no necesarias, se mejoró la configuración y se profesionalizaron los mensajes y logs.
Además, se modularizó el manejo de errores y se mejoró la conexión a la base de datos.
🗂️ Cambios principales por archivo
1.
.husky/commit-msgy.husky/pre-committipo(scope): descripción).2.
package.jsonchalk,commander).standardpara estandarizar el código.3.
server.jscommandery se centralizó la información del proyecto./que devuelve la info y estado de la API.4.
src/config/config.jsinquirery selección manual de base de datos.5.
src/controllers/users/functions/*EliminarUsuario,EditarUsuario,InsertarUsuarios, etc.) ahora son funciones asíncronas limpias que devuelven resultados.6.
src/config/swaggerConfig.js3.0.0.🆕 Campos y mejoras destacadas
projectInfoenserver.js: