LINT
@ -167,7 +167,7 @@ export class UsersService {
) {
user.friends.push(target)
target.friends.push(user)
user.followers.slice(id, 1)
user.followers.splice(id, 1)
await this.usersRepository.save(user)
} else target.followers.push(user)
await this.usersRepository.save(target)
@ -46,12 +46,11 @@
return {
players: match.players,
score: match.score,
date:
new Date(match.date).toLocaleString("fr-FR", {
timeZone: "Europe/Paris",
dateStyle: "short",
timeStyle: "short",
}),
date: new Date(match.date).toLocaleString("fr-FR", {
ranked: match.ranked,
};
});