clear revolution trophy cache
This commit is contained in:
parent
bf09a51ddd
commit
6d25894e5b
|
@ -94,7 +94,10 @@ final class Env(
|
|||
autoPairing = autoPairing,
|
||||
clearJsonViewCache = jsonView.clearCache,
|
||||
clearWinnersCache = winners.clearCache,
|
||||
clearShieldCache = () => shieldApi.clear,
|
||||
clearTrophyCache = tour => {
|
||||
if (tour.isShield) shieldApi.clear
|
||||
else if (tour.isUnique) revolutionApi.clear
|
||||
},
|
||||
renderer = hub.actor.renderer,
|
||||
timeline = hub.actor.timeline,
|
||||
socketHub = socketHub,
|
||||
|
|
|
@ -26,7 +26,7 @@ final class TournamentApi(
|
|||
autoPairing: AutoPairing,
|
||||
clearJsonViewCache: Tournament.ID => Unit,
|
||||
clearWinnersCache: Tournament => Unit,
|
||||
clearShieldCache: () => Unit,
|
||||
clearTrophyCache: Tournament => Unit,
|
||||
renderer: ActorSelection,
|
||||
timeline: ActorSelection,
|
||||
socketHub: ActorRef,
|
||||
|
@ -163,7 +163,7 @@ final class TournamentApi(
|
|||
awardTrophies(tour)
|
||||
indexLeaderboard(tour)
|
||||
clearWinnersCache(tour)
|
||||
clearShieldCache()
|
||||
clearTrophyCache(tour)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue