Commit 91a532c1 authored by nanahira's avatar nanahira

fix

parent 68dde1f4
Pipeline #39682 passed with stages
in 2 minutes and 18 seconds
...@@ -36,11 +36,11 @@ import { Type } from 'class-transformer'; ...@@ -36,11 +36,11 @@ import { Type } from 'class-transformer';
class TournamentCache { class TournamentCache {
id: number; id: number;
noAnalytics: boolean; noAnalytics: boolean;
@Type(() => Tournament) @Type(() => Object)
tournament: Tournament; tournament: Tournament;
@Type(() => Participant) @Type(() => Object)
participants: Participant[]; participants: Participant[];
@Type(() => Match) @Type(() => Object)
matches: Match[]; matches: Match[];
@CacheKey() @CacheKey()
...@@ -114,7 +114,7 @@ export class TournamentService extends CrudService(Tournament, { ...@@ -114,7 +114,7 @@ export class TournamentService extends CrudService(Tournament, {
cache.matches = result.data?.matches || []; cache.matches = result.data?.matches || [];
return cache; return cache;
}); });
const tournament = res.tournament; const tournament = Object.assign(new Tournament(), res.tournament);
tournament.participants = res.participants; tournament.participants = res.participants;
tournament.matches = res.matches; tournament.matches = res.matches;
tournament.wipeDeckBuf(user); tournament.wipeDeckBuf(user);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment