fix: multiple imports

This commit is contained in:
Moyasee
2025-09-29 20:39:58 +03:00
parent 7e22344f77
commit a39f9ebb70
2 changed files with 5 additions and 3 deletions

View File

@@ -1,9 +1,8 @@
import { registerEvent } from "../register-event";
import { HydraApi } from "@main/services";
import { HydraApi, logger } from "@main/services";
import { gamesSublevel, gamesShopAssetsSublevel, levelKeys } from "@main/level";
import type { GameShop, Game } from "@types";
import fs from "node:fs";
import { logger } from "@main/services";
const collectAssetPathsToDelete = (game: Game): string[] => {
const assetPathsToDelete: string[] = [];

View File

@@ -52,7 +52,10 @@ const updateGameData = async (
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);
if (existingAssets) {
const updatedAssets = {