|
@ -167,7 +167,7 @@ export class UsersService { |
|
|
) { |
|
|
) { |
|
|
user.friends.push(target) |
|
|
user.friends.push(target) |
|
|
target.friends.push(user) |
|
|
target.friends.push(user) |
|
|
user.followers.slice(id, 1) |
|
|
user.followers.splice(id, 1) |
|
|
await this.usersRepository.save(user) |
|
|
await this.usersRepository.save(user) |
|
|
} else target.followers.push(user) |
|
|
} else target.followers.push(user) |
|
|
await this.usersRepository.save(target) |
|
|
await this.usersRepository.save(target) |
|
|