feat: refactor hydra api

This commit is contained in:
Zamitto 2024-07-02 14:55:38 -03:00
parent dd23358a95
commit 9e11d6c098
15 changed files with 55 additions and 76 deletions

View file

@ -19,8 +19,8 @@ const removeGameFromLibrary = async (
const removeRemoveGameFromLibrary = async (gameId: number) => {
const game = await gameRepository.findOne({ where: { id: gameId } });
if (game?.remoteId && HydraApi.isLoggedIn()) {
HydraApi.delete(`/games/${game.remoteId}`);
if (game?.remoteId) {
HydraApi.delete(`/games/${game.remoteId}`).catch();
}
};