mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-31 06:41:03 +00:00
fix: multiple imports
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
import { HydraApi } from "@main/services";
|
import { HydraApi, logger } from "@main/services";
|
||||||
import { gamesSublevel, gamesShopAssetsSublevel, levelKeys } from "@main/level";
|
import { gamesSublevel, gamesShopAssetsSublevel, levelKeys } from "@main/level";
|
||||||
import type { GameShop, Game } from "@types";
|
import type { GameShop, Game } from "@types";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import { logger } from "@main/services";
|
|
||||||
|
|
||||||
const collectAssetPathsToDelete = (game: Game): string[] => {
|
const collectAssetPathsToDelete = (game: Game): string[] => {
|
||||||
const assetPathsToDelete: string[] = [];
|
const assetPathsToDelete: string[] = [];
|
||||||
|
|||||||
@@ -52,7 +52,10 @@ const updateGameData = async (
|
|||||||
return updatedGame;
|
return updatedGame;
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateShopAssets = async (gameKey: string, title: string): Promise<void> => {
|
const updateShopAssets = async (
|
||||||
|
gameKey: string,
|
||||||
|
title: string
|
||||||
|
): Promise<void> => {
|
||||||
const existingAssets = await gamesShopAssetsSublevel.get(gameKey);
|
const existingAssets = await gamesShopAssetsSublevel.get(gameKey);
|
||||||
if (existingAssets) {
|
if (existingAssets) {
|
||||||
const updatedAssets = {
|
const updatedAssets = {
|
||||||
|
|||||||
Reference in New Issue
Block a user