intentando resolver
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user