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';
class TournamentCache {
id: number;
noAnalytics: boolean;
@Type(() => Tournament)
@Type(() => Object)
tournament: Tournament;
@Type(() => Participant)
@Type(() => Object)
participants: Participant[];
@Type(() => Match)
@Type(() => Object)
matches: Match[];
@CacheKey()
......@@ -114,7 +114,7 @@ export class TournamentService extends CrudService(Tournament, {
cache.matches = result.data?.matches || [];
return cache;
});
const tournament = res.tournament;
const tournament = Object.assign(new Tournament(), res.tournament);
tournament.participants = res.participants;
tournament.matches = res.matches;
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