diff --git a/src/services/authService.js b/src/services/authService.js index 2b227b1..fb7f7c3 100644 --- a/src/services/authService.js +++ b/src/services/authService.js @@ -98,6 +98,7 @@ class AuthService { await Note.destroy({ where: { userId }, transaction }); await Category.destroy({ where: { userId }, transaction }); await RefreshToken.destroy({ where: { userId }, transaction }); + await User.destroy({ where: { id: userId }, transaction }); return { message: 'Datos del usuario eliminados correctamente; se eliminaron todos los tokens.'