Browse Source

fixed friends invitations

LINT
master
nicolas-arnaud 2 years ago
parent
commit
ee64b1b983
  1. 2
      back/volume/src/users/users.service.ts
  2. 11
      front/volume/src/components/MatchHistory.svelte

2
back/volume/src/users/users.service.ts

@ -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)

11
front/volume/src/components/MatchHistory.svelte

@ -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", {
timeZone: "Europe/Paris",
dateStyle: "short",
timeStyle: "short",
}),
ranked: match.ranked,
};
});

Loading…
Cancel
Save