refactor: fix stale imports

This commit is contained in:
syntaxbullet
2026-01-08 16:39:34 +01:00
parent f92415b89c
commit 017f5ad818
20 changed files with 29 additions and 32 deletions

View File

@@ -63,7 +63,7 @@ mock.module("@shared/db/DrizzleClient", () => {
};
});
mock.module("@/lib/config", () => ({
mock.module("@shared/lib/config", () => ({
config: {
inventory: {
maxStackSize: 100n,

View File

@@ -3,8 +3,8 @@ import { eq, and, sql, count, ilike } from "drizzle-orm";
import { DrizzleClient } from "@shared/db/DrizzleClient";
import { economyService } from "@shared/modules/economy/economy.service";
import { levelingService } from "@shared/modules/leveling/leveling.service";
import { config } from "@/lib/config";
import { UserError } from "@/lib/errors";
import { config } from "@shared/lib/config";
import { UserError } from "@shared/lib/errors";
import { withTransaction } from "@/lib/db";
import type { Transaction, ItemUsageData } from "@shared/lib/types";
import { TransactionType } from "@shared/lib/constants";
@@ -161,7 +161,7 @@ export const inventoryService = {
const results: string[] = [];
// 2. Apply Effects
const { effectHandlers } = await import("./effects/registry");
const { effectHandlers } = await import("@/modules/inventory/effects/registry");
for (const effect of usageData.effects) {
const handler = effectHandlers[effect.type];