mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 16:20:04 +00:00
Various improvements to game management interface
This commit is contained in:
@@ -54,6 +54,10 @@ export class GamesService implements GamesApi {
|
||||
return this.http.get<Map<string, string>>(`${this.apiPath}/game-mappings`);
|
||||
}
|
||||
|
||||
removeGameFromCache(slug: string): void {
|
||||
this.cache.delete(slug);
|
||||
}
|
||||
|
||||
private cacheGames(gameList: DetectedGameDto[]): void {
|
||||
this.cache.clear();
|
||||
gameList.forEach(game => this.cache.set(game.slug, game));
|
||||
|
||||
Reference in New Issue
Block a user