diff --git a/back/volume/src/users/users.service.ts b/back/volume/src/users/users.service.ts index 64f971d..8f4c4f7 100644 --- a/back/volume/src/users/users.service.ts +++ b/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) diff --git a/front/volume/src/components/MatchHistory.svelte b/front/volume/src/components/MatchHistory.svelte index 65d8e96..a7121f6 100644 --- a/front/volume/src/components/MatchHistory.svelte +++ b/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, }; });