mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: refactor hydra api
This commit is contained in:
parent
dd23358a95
commit
9e11d6c098
15 changed files with 55 additions and 76 deletions
|
@ -2,8 +2,6 @@ import { gameRepository } from "@main/repository";
|
|||
import { HydraApi } from "../hydra-api";
|
||||
import { steamGamesWorker } from "@main/workers";
|
||||
import { getSteamAppAsset } from "@main/helpers";
|
||||
import { logger } from "../logger";
|
||||
import { AxiosError } from "axios";
|
||||
|
||||
export const mergeWithRemoteGames = async () => {
|
||||
try {
|
||||
|
@ -62,11 +60,5 @@ export const mergeWithRemoteGames = async () => {
|
|||
}
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
if (err instanceof AxiosError) {
|
||||
logger.error("getRemoteGames", err.message);
|
||||
} else {
|
||||
logger.error("getRemoteGames", err);
|
||||
}
|
||||
}
|
||||
} catch (err) {}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue