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

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

@ -46,12 +46,11 @@
return { return {
players: match.players, players: match.players,
score: match.score, score: match.score,
date: date: new Date(match.date).toLocaleString("fr-FR", {
new Date(match.date).toLocaleString("fr-FR", { timeZone: "Europe/Paris",
timeZone: "Europe/Paris", dateStyle: "short",
dateStyle: "short", timeStyle: "short",
timeStyle: "short", }),
}),
ranked: match.ranked, ranked: match.ranked,
}; };
}); });

Loading…
Cancel
Save