intentando resolver

This commit is contained in:
2024-06-18 16:53:53 -06:00
parent 30048aa544
commit e463d51cb2
4 changed files with 9 additions and 6 deletions
+6 -2
View File
@@ -65,9 +65,13 @@ export class AuthService {
return { token: token };
}
async update(id, updateUserDto) {}
async update(userId, updateUserDto) {
return await this.userRepository.update(userId, updateUserDto);
}
async remove(id) {}
async remove(userId: number): Promise<void> {
await this.userRepository.delete(userId);
}
//validate tojen of users
async validateToken(token: string): Promise<User> {